¡@

Home 

python Programming Glossary: testcommon

Python unit test with base and sub class

http://stackoverflow.com/questions/1323455/python-unit-test-with-base-and-sub-class

import unittest class BaseTest unittest.TestCase def testCommon self print 'Calling BaseTest testCommon' value 5 self.assertEquals.. def testCommon self print 'Calling BaseTest testCommon' value 5 self.assertEquals value 5 class SubTest1 BaseTest def.. unittest.main The output of the above is Calling BaseTest testCommon .Calling BaseTest testCommon .Calling SubTest1 testSub1 .Calling..

Python: Do Python Lists keep a count for len() or does it count for each call?

http://stackoverflow.com/questions/699177/python-do-python-lists-keep-a-count-for-len-or-does-it-count-for-each-call