summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unittest.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Adding assertIs and assertIsNot methods to unittest.TestCaseMichael Foord2009-04-051-0/+23
| | | | Issue #2578
* Store the functions in the _type_equality_funcs as wrapped objects that are ↵Michael Foord2009-04-021-0/+12
| | | | | | | | deep copyable. This allows for the deep copying of TestCase instances. Issue 5660
* Better exception messages for unittest assert methods.Michael Foord2009-04-021-1/+171
| | | | | | | | | | | | - unittest.assertNotEqual() now uses the inequality operator (!=) instead of the equality operator. - Default assertTrue and assertFalse messages are now useful. - TestCase has a longMessage attribute. This defaults to False, but if set to True useful error messages are shown in addition to explicit messages passed to assert methods. Issue #5663
* Rename the actual method definitions to the official assertFoo names.Gregory P. Smith2009-03-311-1/+27
| | | | | | | | | | Adds unittests to make sure the old fail* names continue to work now and adds a comment that they are pending deprecation. Also adds a test to confirm that the plural Equals method variants continue to exist even though we're unlikely to deprecate those. http://bugs.python.org/issue2578
* The unittest.TestCase.assertEqual() now displays the differences in lists,Gregory P. Smith2009-03-311-47/+417
| | | | | | | | | | tuples, dicts and sets on failure. Many new handy type and comparison specific assert* methods have been added that fail with error messages actually useful for debugging. Contributed in by Google and completed with help from mfoord and GvR at PyCon 2009 sprints. Discussion lives in http://bugs.python.org/issue2578.
* rename TestCase.skip() to skipTest() because it causes annoying problems ↵Benjamin Peterson2009-03-261-2/+2
| | | | with trial #5571
* comply with the evilJavaNamingScheme for attribute namesBenjamin Peterson2009-03-231-2/+2
| | | | It seems my love of PEP 8 overrode the need for consistentcy
* implement test skipping and expected failuresBenjamin Peterson2009-03-231-6/+124
| | | | patch by myself #1034053
* Issue #4444: Allow assertRaises() to be used as a context handler.Antoine Pitrou2008-12-281-0/+37
|
* Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (justJeffrey Yasskin2008-01-031-1/+22
| | | | | | | the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361, r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new documentation. The only significant difference is that round(x) returns a float to preserve backward-compatibility. See http://bugs.python.org/issue1689.
* Replaced import of the 'new' module with 'types' module and added a ↵Christian Heimes2007-11-271-58/+30
| | | | deprecation warning to the 'new' module.
* Fix those parts in the testsuite that assumed that sys.maxint would cause ↵Kristján Valur Jónsson2007-05-031-2/+4
| | | | overflow on x64. Now the testsuite is well behaved on that platform.
* Whitespace normalization.Tim Peters2007-03-121-416/+416
|
* Add some sanity checks to unittest.TestSuite's addTest(s) methods.Georg Brandl2007-03-071-0/+13
| | | | Fixes #878275.
* Patches #1550273, #1550272: fix a few bugs in unittest and add aGeorg Brandl2007-03-071-17/+2275
| | | | comprehensive test suite for the module.
* Added an __iter__ method for test suites.Jim Fulton2004-08-281-0/+31