summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorGustavo Niemeyer <gustavo@niemeyer.net>2007-11-17 15:30:34 -0200
committerGustavo Niemeyer <gustavo@niemeyer.net>2007-11-17 15:30:34 -0200
commit745fc9a11340f192e2f73c0f1f3101866d26f74f (patch)
tree2626e5ddf71d2d96e6d358b7f0e55c5d2d713e9e /NEWS
parent90e0d73ee9238af7c80d9342a028d04028d4ae3a (diff)
downloadmocker-745fc9a11340f192e2f73c0f1f3101866d26f74f.tar.gz
Added MockerTestCase.assertMethodsMatch(). It will verify if all
public methods found in the class passed as the first argument are also present in the class passed as the second argument, and that they accept the same arguments. This is useful to verify if a fake or stub class have the same API as the real class being simulated.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9ff0dbc..8d43cb5 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,12 @@
easy creation of temporary files/directories, and ensure that they
get removed after each test method runs.
+- Added MockerTestCase.assertMethodsMatch(). It will verify if all
+ public methods found in the class passed as the first argument are
+ also present in the class passed as the second argument, and that
+ they accept the same arguments. This is useful to verify if a fake
+ or stub class have the same API as the real class being simulated.
+
- If the replay() method is called twice, expectations will be fully
reset so that several similar tests may be performed in a row by
just calling replay() again.