mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Anonymous: Use assertEqual in tests instead of failUnless(... == ...).
This commit is contained in:
parent
6b1131bff9
commit
96fae12fd2
@ -40,10 +40,10 @@ class AnonymousTestCase(ChannelPluginTestCase):
|
|||||||
try:
|
try:
|
||||||
conf.supybot.plugins.Anonymous.requireRegistration.setValue(False)
|
conf.supybot.plugins.Anonymous.requireRegistration.setValue(False)
|
||||||
m = self.assertNotError('anonymous say %s foo!' % self.channel)
|
m = self.assertNotError('anonymous say %s foo!' % self.channel)
|
||||||
self.failUnless(m.args[1] == 'foo!')
|
self.assertEqual(m.args[1], 'foo!')
|
||||||
conf.supybot.plugins.Anonymous.allowPrivateTarget.setValue(True)
|
conf.supybot.plugins.Anonymous.allowPrivateTarget.setValue(True)
|
||||||
m = self.assertNotError('anonymous say %s foo!' % self.nick)
|
m = self.assertNotError('anonymous say %s foo!' % self.nick)
|
||||||
self.failUnless(m.args[1] == 'foo!')
|
self.assertEqual(m.args[1], 'foo!')
|
||||||
finally:
|
finally:
|
||||||
conf.supybot.plugins.Anonymous.requireRegistration.setValue(origreg)
|
conf.supybot.plugins.Anonymous.requireRegistration.setValue(origreg)
|
||||||
conf.supybot.plugins.Anonymous.allowPrivateTarget.setValue(origpriv)
|
conf.supybot.plugins.Anonymous.allowPrivateTarget.setValue(origpriv)
|
||||||
|
Loading…
Reference in New Issue
Block a user