Message183218
Or create a JsonMatcher class that does it for you.
class JsonMatcher(object):
def __init__(self, expected):
self.expected = expected
def __eq__(self, other):
return json.loads(other) == self.expected
q.tranport.assert_called_once_with(JsonMatcher(expected), (PEER, PORT)) |
|
Date |
User |
Action |
Args |
2013-02-28 13:13:38 | michael.foord | set | recipients:
+ michael.foord, pitrou, ezio.melotti |
2013-02-28 13:13:38 | michael.foord | set | messageid: <1362057218.82.0.791337092573.issue17063@psf.upfronthosting.co.za> |
2013-02-28 13:13:38 | michael.foord | link | issue17063 messages |
2013-02-28 13:13:38 | michael.foord | create | |
|