Include the proper string in assertAction's error message.

This commit is contained in:
James Vega 2006-11-13 20:32:45 +00:00
parent b57311a68e
commit 2bf838f109

View File

@ -331,7 +331,8 @@ class PluginTestCase(SupyTestCase):
self.failUnless(ircmsgs.isAction(m), '%r is not an action.' % m) self.failUnless(ircmsgs.isAction(m), '%r is not an action.' % m)
if expectedResponse is not None: if expectedResponse is not None:
s = ircmsgs.unAction(m) s = ircmsgs.unAction(m)
self.assertEqual(s, expectedResponse, '%r != %r' % (s, m)) self.assertEqual(s, expectedResponse,
'%r != %r' % (s, expectedResponse))
return m return m
def assertSnarfAction(self, query, expectedResponse=None, **kwargs): def assertSnarfAction(self, query, expectedResponse=None, **kwargs):