Commit Graph

8 Commits

Author SHA1 Message Date
Georg Brandl f895cf5d33 #7031: Add TestCase.assertIsInstance and negated method. 2009-10-01 20:59:31 +00:00
Georg Brandl 46cc46af07 Fix some weird whitespace and two other overlong lines. 2009-10-01 20:11:14 +00:00
Michael Foord d6aabcfe2f Test creation moved from TestProgram.parseArgs to TestProgram.createTests exclusively. Issue 6956. 2009-09-27 19:15:41 +00:00
Michael Foord e91ea56b30 Test discovery in unittest will only attempt to import modules that are importable; i.e. their names are valid Python identifiers. If an import fails during discovery this will be recorded as an error and test discovery will continue. Issue 6568. 2009-09-13 19:07:03 +00:00
Michael Foord 5a9719d627 unittest.TestLoader.loadTestsFromName honors the loader suiteClass attribute. Issue 6866. 2009-09-13 17:28:35 +00:00
Michael Foord c3f79373e8 Objects that compare equal automatically pass or fail assertAlmostEqual and assertNotAlmostEqual tests on unittest.TestCase. Issue 6567. 2009-09-13 16:40:02 +00:00
Kristján Valur Jónsson e2a77980b6 issue 6275
Add an "exc_value" attribute to the _AssertRaisesContext context manager in the unittest package.  This allows further tests on the exception that was raised after the context manager exits.
2009-08-27 22:20:21 +00:00
Benjamin Peterson d7b0eebcae split unittest.py into a package 2009-07-19 20:18:21 +00:00