Re: default test method name in unittest framework

2007-05-07 Thread Gabriel Genellina
En Mon, 07 May 2007 04:49:12 -0300, Vyacheslav Maslov <[EMAIL PROTECTED]> escribió: > Yes, i general you are right. I meant following case, please look at my > example > > Suppose i have following simple test case: > > import unittest > > class SomeTest(unittest.TestCase): > > def testAdd(se

Re: default test method name in unittest framework

2007-05-07 Thread Vyacheslav Maslov
Yes, i general you are right. I meant following case, please look at my example Suppose i have following simple test case: import unittest class SomeTest(unittest.TestCase): def testAdd(self): self.assertEqual(2+2,4) if __name__=="__main__": unittest.TextTestRunner().run(SomeTest

Re: default test method name in unittest framework

2007-05-06 Thread Gabriel Genellina
En Sun, 06 May 2007 22:17:44 -0300, Vyacheslav Maslov <[EMAIL PROTECTED]> escribió: > i have question related to python's unit testing framework. > > Take a look at unittest.TestCase class. The main method which contains > all > code related to test case execution have name "run". But in the s

default test method name in unittest framework

2007-05-06 Thread Vyacheslav Maslov
Hi, all! i have question related to python's unit testing framework. Take a look at unittest.TestCase class. The main method which contains all code related to test case execution have name "run". But in the same time constructor of unittest.TestCase class have param methodName with default valu