mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 09:29:24 +01:00
SedRegex: Use assertSnarfNoResponse instead of assertNoResponse.
assertNoResponse was only passing by accident on faster machines.
This commit is contained in:
parent
2bbd43fd85
commit
7e48ba0ba8
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user