mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Karma: Fix tests.
This commit is contained in:
parent
d13015dfb5
commit
0595489166
@ -197,12 +197,12 @@ class KarmaTestCase(ChannelPluginTestCase):
|
|||||||
karma.response.setValue(True)
|
karma.response.setValue(True)
|
||||||
karma.allowUnaddressedKarma.setValue(True)
|
karma.allowUnaddressedKarma.setValue(True)
|
||||||
for m in ('++', '--'):
|
for m in ('++', '--'):
|
||||||
self.assertRegexp('foo%s' % m, 'operation')
|
self.assertRegexp('foo%s' % m, 'is now')
|
||||||
self.assertSnarfRegexp('foo%s' % m, 'operation')
|
self.assertSnarfRegexp('foo%s' % m, 'is now')
|
||||||
#self.assertNoResponse('foo bar%s' % m)
|
#self.assertNoResponse('foo bar%s' % m)
|
||||||
#self.assertSnarfNoResponse('foo bar%s' % m)
|
#self.assertSnarfNoResponse('foo bar%s' % m)
|
||||||
self.assertRegexp('(foo bar)%s' % m, 'operation')
|
self.assertRegexp('(foo bar)%s' % m, 'is now')
|
||||||
self.assertSnarfRegexp('(foo bar)%s' % m, 'operation')
|
self.assertSnarfRegexp('(foo bar)%s' % m, 'is now')
|
||||||
finally:
|
finally:
|
||||||
karma.response.setValue(resp)
|
karma.response.setValue(resp)
|
||||||
karma.allowUnaddressedKarma.setValue(unaddressed)
|
karma.allowUnaddressedKarma.setValue(unaddressed)
|
||||||
|
Loading…
Reference in New Issue
Block a user