[TIP] Mock Testing Patterns
Michael Foord
fuzzyman at voidspace.org.uk
Sun Nov 18 16:27:17 PST 2007
Hello all,
It seems to me that most of the patterns followed by mocking libraries are:
record expectations
actions
verify
I find this a much less intuitive pattern than the standard unit testing
pattern:
action
assertions
Do any of the mocking libraries support this pattern - asserting what
methods were called afterwards rather than setting expectations ahead of
the actions?
All the best,
Michael Foord
http://www.manning.com/foord
More information about the testing-in-python
mailing list