diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2007-12-05 20:49:55 -0200 |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2007-12-05 20:49:55 -0200 |
commit | b04e870828e81f0f519ad31eae43d1eb0091d692 (patch) | |
tree | 236d722852f5ce47a261a3460e04fe9d83c3aeba /NEWS | |
parent | 5c7342b0fd9caf32d9b5d3077175e2bf21b7460f (diff) | |
download | mocker-b04e870828e81f0f519ad31eae43d1eb0091d692.tar.gz |
New MATCH() argument matcher, which allows using a function
to match an argument generically. E.g. MATCH(lambda x: x > 10)
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -8,6 +8,9 @@ - MockerTestCase now verifies if the mocker is put in replay mode in cases where events were recorded. +- New MATCH() argument matcher, which allows using a function + to match an argument generically. E.g. MATCH(lambda x: x > 10) + - 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)). |