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
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
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