Which mock library do you prefer?
phlip2005 at gmail.com
Wed Feb 17 17:32:00 CET 2010
> I run my tests all the time (they almost replaced debugger in my IDE).
> But there are times, when I can't just run tests after 1-3 lines of
> Maybe it's not proper TDD
You are still being too literal. The "1-3 lines of code" guideline is
a guideline, not a rule. It means 1 small edit is best, 2 edits are
mostly harmless, 3 is okay, 4 is acceptable, and so on. It's the peak
of the Zipf's Law curve:
You "mocked the wire" with that hardcoded XML so that your subsequent
edits can be very short and reliable. Props!
More information about the Python-list