Suppose I have this TestCase class. class C(TestCase): def setUp(): # very time consuming and resources intensive stuffs. pass
def test_A(self): pass def test_B(self): pass def test_C(self): pass The unittest docs says: > Each instance of the TestCase will only be used to run a single test > method, so a new fixture is created for each test. Does this mean that the setUp() method, which is called to prepare the test fixture, get called for test_A, test_B and test_C? In this case is there a way to force just one setUp() call? Thanks.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor