diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2007-12-09 18:28:20 -0200 |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2007-12-09 18:28:20 -0200 |
commit | a471e0e32d58eae9475456ee0963dcb9aaf7d9f2 (patch) | |
tree | 11ed5815fa83824cdd3500d366185dce207fbea6 /NEWS | |
parent | c8f2e2a50b5a31d27f829012bfb8193f764a69d8 (diff) | |
download | mocker-a471e0e32d58eae9475456ee0963dcb9aaf7d9f2.tar.gz |
Orderer() is now implemented based on may_run() instead of matches().
If the event is run with may_run() False, a nice assertion error is
raised with a nice debugging message. :-)
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,6 +1,8 @@ 0.10 (2007-11-XX) ================== +- Greatly improved error messages and logic for expression ordering! + - Implemented MockerTestCase.addCleanup(). It allows one to register cleanup functions to be called after the test is complete. @@ -16,11 +18,12 @@ - Now when a spec is provided (or with proxy/replace/patch) the existence of the real method is checked even if the mocked - method doesn't have to execute (e.g. due to count(0)). + method doesn't execute. This is useful to detect API expectation + errors even if count(0) is used (a negative assertion). -- Implemented support for Deferred results as understood by - Twisted Trial's TestCase, so that coexistence by multiple - inheritance is possible and trivial. +- Implemented in MockerTestCase support for Deferred results as + understood by Twisted Trial's TestCase, so that coexistence by + multiple inheritance is possible and trivial. - MockerTestCase.makeFile() with content=None (the default) now consistently returns an unexistent temporary filename which |