[issue10675] unittest should have an assertChanges context manager
Raymond Hettinger
report at bugs.python.org
Fri Dec 10 22:01:42 CET 2010
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
I concur with David Murray. Usually you care about the specific value changed to, not whether it changed at all. The changed-by variant is even more specialized and you're better of using assertEqual since you know what the new value is supposed to be:
assertEqual(thing.attr, x)
...
assertEqual(thing.attr, x+by)
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10675>
_______________________________________
More information about the Python-bugs-list
mailing list