This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author michael.foord
Recipients ezio.melotti, michael.foord, pitrou
Date 2013-02-28.13:13:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362057218.82.0.791337092573.issue17063@psf.upfronthosting.co.za>
In-reply-to
Content
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))
History
Date User Action Args
2013-02-28 13:13:38michael.foordsetrecipients: + michael.foord, pitrou, ezio.melotti
2013-02-28 13:13:38michael.foordsetmessageid: <1362057218.82.0.791337092573.issue17063@psf.upfronthosting.co.za>
2013-02-28 13:13:38michael.foordlinkissue17063 messages
2013-02-28 13:13:38michael.foordcreate