Better message for failed assertNoResponse calls.

This commit is contained in:
Jeremy Fincher 2003-10-21 20:17:29 +00:00
parent 98a13e267a
commit ec7644fd2f

View File

@ -192,7 +192,7 @@ class PluginTestCase(unittest.TestCase):
def assertNoResponse(self, query, timeout=None):
m = self._feedMsg(query, timeout)
self.failIf(m)
self.failIf(m, 'Unexpected response: %s' % msg.args[1])
def assertResponse(self, query, expectedResponse):
m = self._feedMsg(query)