En Tue, 06 Oct 2009 18:01:34 -0300, Joel Smith
escribió:
Gabriel Genellina wrote:
Note that you don't *have* to use partial in this case, as you're
building the suite yourself. Just create the TestCase instances
manually:
suite = unittest.TestSuite([
TestGenericWindow('testit',
Joel Smith wrote:
> Hi List,
> I want to make some test case classes that can have some data passed in
> to modify the way they behave. I can't see a straightforward manner to
> pass data to an __init__() method of a class derived from
> unittest.TestCase, or to pass data to a test function within
Gabriel Genellina wrote:
Note that you don't *have* to use partial in this case, as you're
building the suite yourself. Just create the TestCase instances manually:
suite = unittest.TestSuite([
TestGenericWindow('testit', 'brown'),
TestGenericWindow('testit', 'blue'),
Test
En Mon, 05 Oct 2009 23:12:02 -0300, Joel Smith
escribió:
I want to make some test case classes that can have some data passed in
to modify the way they behave. I can't see a straightforward manner to
pass data to an __init__() method of a class derived from
unittest.TestCase, or to pass
Hi List,
I want to make some test case classes that can have some data passed in
to modify the way they behave. I can't see a straightforward manner to
pass data to an __init__() method of a class derived from
unittest.TestCase, or to pass data to a test function within that
class. Being a C+