help with unittest

Mahrt, Dallas dallasm at aiinet.com
Sat Jan 24 00:10:47 CET 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