Re: How to pass variable to test class

2006-04-20 Thread Podi
Thanks for replying. I need to pass some external values to the test cases because I want to run the same tests in different environments such as lab/instrument setup. Regards, Podi -- http://mail.python.org/mailman/listinfo/python-list

Re: How to pass variable to test class

2006-04-17 Thread Peter Otten
Podi wrote: > Newbie question about unittest. I am having trouble passing a variable > to a test class object. > > MyCase class will potentially have many test functions. By default a unittest.TestCase has only one test function called "runTest". Therefore you have to add multiple instances of y

How to pass variable to test class

2006-04-16 Thread Podi
Hi, Newbie question about unittest. I am having trouble passing a variable to a test class object. MyCase class will potentially have many test functions. Any help would be much appreciated. Thanks, P # File MyCase.py import unittest class MyCase(unittest.TestCase): def __init__(self, val