Re: How to optimise this code?

2007-08-22 Thread David N Montgomery
On Wed, 22 Aug 2007 02:39:45 -, "Basilisk96" <[EMAIL PROTECTED]> said: > David, > > If your true design intent is to run X number of test cases, unittest > is the biggest bang for your buck, like shown by Peter's example. You > just subclass unittest.TestCase, and def your test methods in the

How to optimise this code?

2007-08-21 Thread David N Montgomery
class testCase: def __init__(self, tc): if tc == 1:self.testCase1() if tc == 2:self.testCase2() if tc == 3:self.testCase3() if tc == 4:self.testCase4() if tc == 5:self.testCase5() if tc == 6:self.testCase6() def testCase1(self): print