SedRegex: Use assertSnarfNoResponse instead of assertNoResponse.

assertNoResponse was only passing by accident on faster machines.
This commit is contained in:
Valentin Lorentz 2020-04-11 00:16:01 +02:00
parent 2bbd43fd85
commit 7e48ba0ba8

View File

@ -59,7 +59,7 @@ class SedRegexTestCase(ChannelPluginTestCase):
def testIgnoreRegexpWithBadCase(self): def testIgnoreRegexpWithBadCase(self):
self.feedMsg('aliens are invading, help!') self.feedMsg('aliens are invading, help!')
self.assertNoResponse('S/aliens/monsters/') self.assertSnarfNoResponse('S/aliens/monsters/')
def testGlobalReplace(self): def testGlobalReplace(self):
self.feedMsg('AAaa aaAa a b') self.feedMsg('AAaa aaAa a b')
@ -145,7 +145,6 @@ class SedRegexTestCase(ChannelPluginTestCase):
m = self.getMsg('echo dummy message') m = self.getMsg('echo dummy message')
# XXX: this is a total hack... # XXX: this is a total hack...
for msg in self.irc.state.history: for msg in self.irc.state.history:
print("Message in history: %s" % msg, end='')
self.assertNotIn("cbn't", str(msg)) self.assertNotIn("cbn't", str(msg))
def testActionReplace(self): def testActionReplace(self):