Re: Re: unittest.TestCase and functools.partial don't seem to mix

2009-10-07 Thread Gabriel Genellina
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',

Re: unittest.TestCase and functools.partial don't seem to mix

2009-10-07 Thread Peter Otten
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

Re: Re: unittest.TestCase and functools.partial don't seem to mix

2009-10-06 Thread Joel Smith
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

Re: unittest.TestCase and functools.partial don't seem to mix

2009-10-06 Thread Gabriel Genellina
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

unittest.TestCase and functools.partial don't seem to mix

2009-10-06 Thread Joel Smith
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+