summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorGustavo Niemeyer <gustavo@niemeyer.net>2010-09-18 16:36:32 -0300
committerGustavo Niemeyer <gustavo@niemeyer.net>2010-09-18 16:36:32 -0300
commitf28880cb3cb0642b96732644fc1a4b8c996d5a48 (patch)
treea8ffbd446282f1992d2b2e11f7acccc7e4e17ef1 /NEWS
parent21f0fa2da7fcece8f8ed3125333189e666c66077 (diff)
downloadmocker-f28880cb3cb0642b96732644fc1a4b8c996d5a48.tar.gz
- Implemented support for assertRaises() as a context manager, as in
Python 2.7 and 3.2. - Implemented assertIsInstance() and assertIsNotInstance() as well. - Updated NEWS file.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS11
1 files changed, 11 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index c508df5..53327d8 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,17 @@
function will receive the patched or proxied object so that its state
may be used or verified in checks.
+- assertRaises() in MockerTestCase can now be used like Python 2.7 and 3.2,
+ as a context manager. This enables contructs such as:
+
+ with self.assertRaises(Error):
+ raising_logic()
+
+- Added assertIsInstance() and assertNotIsInstance().
+
+- Fixed bug #634566, reported by Mark Hammond, where throw(Error) effects
+ might make the recorded action be accepted multiple times.
+
1.0 (2010-06-20)
=================