Message166591
That is one way to do it. But it would be better to use a local variable rather than an attribute of the class (because otherwise you have to worry about resetting the value if more than one test uses the same pattern). Something like this would be better
called = []
def cb(packet):
called.append(1) |
|
Date |
User |
Action |
Args |
2012-07-27 17:46:38 | chris.jerdonek | set | recipients:
+ chris.jerdonek, pitrou, tweksteen |
2012-07-27 17:46:37 | chris.jerdonek | set | messageid: <1343411198.0.0.680811288569.issue15464@psf.upfronthosting.co.za> |
2012-07-27 17:46:37 | chris.jerdonek | link | issue15464 messages |
2012-07-27 17:46:37 | chris.jerdonek | create | |
|