help with unittest
Mahrt, Dallas
dallasm at aiinet.com
Fri Jan 23 18:10:47 EST 2004
> if __name__ == '__main__':
> #unittest.main()
> suite =
> unittest.defaultTestLoader.loadTestsFromNames(['myTestCase2.te
> stTrue'])
> unittest.TextTestRunner().run(suite)
>
Not quite an asnswer to the question, but why not do it this way
If __name__ = '__main__':
suite = unittest.makeSuite(myTestCase2, 'testTrue')
unittest.TextTestRunner().run(suite)
?
---
Dallas S. Mahrt
More information about the Python-list
mailing list