Commit Graph

31 Commits

Author SHA1 Message Date
Michael Foord 959c16d7a4 Updating documentation and adding docstrings to unittest.TestCase.assertRegexpMatches and assertNotRegexpMatches. Issue 8038. 2010-05-08 16:40:52 +00:00
Michael Foord a04c7a0f16 Issue #8038: Addition of unittest.TestCase.assertNotRegexpMatches 2010-04-02 22:55:59 +00:00
Michael Foord a7e08fe3f8 Addition of delta keyword argument to unittest.TestCase.assertAlmostEquals and assertNotAlmostEquals
This allows the comparison of objects by specifying a maximum difference; this includes the comparing of non-numeric objects that don't support rounding.
2010-03-27 19:10:11 +00:00
Michael Foord b1aa30f94d Issue 7815. __unittest in module globals trims frames from reported stacktraces in unittest. 2010-03-22 00:06:30 +00:00
Florent Xicluna 4a0f8b89f6 Silence more py3k warnings in unittest.case. 2010-03-21 10:50:44 +00:00
Michael Foord 98e7b7644b Issue 7832: renaming unittest.TestCase.assertSameElements to assertItemsEqual and changing behaviour 2010-03-20 03:00:34 +00:00
Michael Foord 08611b5e55 Remove accidental print statement from last commit. 2010-03-07 23:16:20 +00:00
Michael Foord a715255a27 Fix accidental name rebinding in unittest py3k warning filtering. 2010-03-07 23:10:36 +00:00
Michael Foord 5ffa325a82 Addition of setUpClass and setUpModule shared fixtures to unittest. 2010-03-07 22:04:55 +00:00
Michael Foord 53e8eeadd6 Fix for potentials errors in constructing unittest failure messages. Plus skipped test methods no longer run setUp and tearDown (Issue 8059) 2010-03-07 20:22:12 +00:00
Florent Xicluna 1f3b4e12e8 Fix some py3k warnings in the standard library. 2010-03-07 12:14:25 +00:00
Michael Foord ae3db0a12b Support for old TestResult object (unittest) with warnings when using unsupported features. 2010-02-22 23:28:32 +00:00
Michael Foord c2294dd6ba Fix unittest.TestCase.assertDictContainsSubset so it can't die with unicode issues when constructing failure messages. Issue 7956 2010-02-18 21:37:07 +00:00
Michael Foord 225a099fe5 unittest.TestCase uses safe_repr for producing failure messages. Partial fix for issue 7956 2010-02-18 20:30:09 +00:00
Michael Foord 67dfc77dfd Remove deprecation on assert_. It is used too frequently. 2010-02-10 14:31:30 +00:00
Michael Foord db43b5a1f5 Issue 7893 and Issue 7588 2010-02-10 14:25:12 +00:00
Michael Foord fe6349c965 Make assertMultiLineEqual the default for comparing unicode strings. 2010-02-08 22:41:16 +00:00
Ezio Melotti cd4f657809 Fix exc_value -> exception in docstring 2010-02-08 21:52:08 +00:00
Michael Foord 2bd52dcccb assertRaises as context manager now allows you to access exception as documented 2010-02-07 18:44:12 +00:00
Georg Brandl dc3694bee0 Rename "exc_value" attribute on assertRaises context manager to "exception". 2010-02-07 17:02:22 +00:00
Georg Brandl b0eb4d3eb1 Use "regexp" consistently. 2010-02-07 11:34:15 +00:00
Michael Foord 757cc4d15f Correction to docstring correction. 2010-02-05 23:22:37 +00:00
Michael Foord d0edec38ce Improving docstrings in unittest.TestCase 2010-02-05 22:55:09 +00:00
R. David Murray 05b4171624 Fix typo in assertSequenceEqual docstring. 2010-01-29 19:35:39 +00:00
Antoine Pitrou b9d4963a98 Issue #7092: Fix the DeprecationWarnings emitted by the standard library
when using the -3 flag.  Patch by Florent Xicluna.
2010-01-04 23:22:44 +00:00
Benjamin Peterson d46430bd81 now that deepcopy can handle instance methods, this hack can be removed #7409
Thanks Robert Collins
2009-11-29 22:26:26 +00:00
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 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