mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Include the proper string in assertAction's error message.
This commit is contained in:
parent
b57311a68e
commit
2bf838f109
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user