summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.rst
Commit message (Collapse)AuthorAgeFilesLines
* #7031: Add TestCase.assertIsInstance and negated method.Georg Brandl2009-10-011-0/+16
|
* Documentation improvement for load_tests protocol in unittest. Issue 6515.Michael Foord2009-09-271-0/+5
|
* Remove an extraneous space in unittest documentation.Michael Foord2009-09-131-1/+1
|
* Test discovery in unittest will only attempt to import modules that are ↵Michael Foord2009-09-131-1/+6
| | | | 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.
* Objects that compare equal automatically pass or fail assertAlmostEqual and ↵Michael Foord2009-09-131-0/+6
| | | | assertNotAlmostEqual tests on unittest.TestCase. Issue 6567.
* issue 6275Kristján Valur Jónsson2009-08-271-0/+4
| | | | 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.
* Fixed defaultTestCase -> defaultTestResultEzio Melotti2009-06-301-2/+2
|
* Fix markup.Georg Brandl2009-05-311-6/+3
|
* Rewrap a few long lines.Georg Brandl2009-05-301-35/+38
|
* Move the basic examples section back to the beginning.Raymond Hettinger2009-05-291-63/+67
|
* Add test discovery to unittest. Issue 6001.Michael Foord2009-05-291-14/+153
|
* make class skipping decorators the same as skipping every test of the classBenjamin Peterson2009-05-251-21/+5
| | | | This removes ClassTestSuite and a good bit of hacks.
* Adds a verbosity keyword argument to unittest.main plus a minor fix allowing ↵Michael Foord2009-05-111-3/+33
| | | | | | | | | | you to specify test modules / classes from the command line. Closes issue 5995. Michael Foord
* (no commit message)Michael Foord2009-05-021-0/+14
|
* Add addCleanup and doCleanups to unittest.TestCase.Michael Foord2009-05-021-0/+30
| | | | | | Closes issue 5679. Michael Foord
* Adds an exit parameter to unittest.main(). If False main no longerMichael Foord2009-05-021-2/+16
| | | | | | | | calls sys.exit. Closes issue 3379. Michael Foord
* #5848: small unittest doc patch.Georg Brandl2009-04-271-3/+20
|
* Demote warnings to notices where appropriate, following the goal that as few ↵Georg Brandl2009-04-271-1/+1
| | | | | | "red box" warnings should clutter the docs as possible. Part 1: stuff that gets merged to Py3k.
* #5834: use "failure" instead of "error" because the two have different ↵Georg Brandl2009-04-251-1/+1
| | | | meanings in unittest context.
* Typo fixesAndrew M. Kuchling2009-04-091-6/+6
|
* Adding assertIs and assertIsNot methods to unittest.TestCaseMichael Foord2009-04-051-0/+17
| | | | Issue #2578
* Better exception messages for unittest assert methods.Michael Foord2009-04-021-1/+19
| | | | | | | | | | | | - 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
* Issue an actual PendingDeprecationWarning for the TestCase.fail* methods.Gregory P. Smith2009-03-311-0/+21
| | | | Document the deprecation.
* The unittest.TestCase.assertEqual() now displays the differences in lists,Gregory P. Smith2009-03-311-21/+205
| | | | | | | | | | 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.
* fix consistencyBenjamin Peterson2009-03-291-2/+2
|
* stop the versionchanged directive from hiding the docsBenjamin Peterson2009-03-291-5/+7
|
* a more realistic exampleBenjamin Peterson2009-03-291-1/+15
|
* rename TestCase.skip() to skipTest() because it causes annoying problems ↵Benjamin Peterson2009-03-261-1/+1
| | | | with trial #5571
* Add links to related resources.Raymond Hettinger2009-03-241-0/+6
|
* forgot to document that setUp can be skipped (silly me...)Benjamin Peterson2009-03-231-2/+5
|
* refactor unittest docsBenjamin Peterson2009-03-231-389/+413
|
* 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-5/+128
| | | | patch by myself #1034053
* Remove trailing whitespace.Georg Brandl2009-01-031-2/+2
|
* wrong version number in doc changes committed in r67979Antoine Pitrou2008-12-281-1/+1
|
* Issue #4444: Allow assertRaises() to be used as a context handler.Antoine Pitrou2008-12-281-2/+9
|
* #3912: document default for *places* arg.Georg Brandl2008-09-211-2/+4
|
* #2757: Remove spare newline.Georg Brandl2008-05-041-1/+0
|
* #2249: document assertTrue and assertFalse.Georg Brandl2008-03-091-0/+2
|
* #1467: fix documentation for TestResult.add{Error,Failure}.Georg Brandl2007-11-241-4/+6
|
* Move the 2.6 reST doc tree in place.Georg Brandl2007-08-151-0/+936