From a471e0e32d58eae9475456ee0963dcb9aaf7d9f2 Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Sun, 9 Dec 2007 18:28:20 -0200 Subject: 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. :-) --- NEWS | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index e735ebe..932b11c 100644 --- a/NEWS +++ b/NEWS @@ -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 -- cgit v1.2.1