mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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:
|
||||
conf.supybot.plugins.Anonymous.requireRegistration.setValue(False)
|
||||
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)
|
||||
m = self.assertNotError('anonymous say %s foo!' % self.nick)
|
||||
self.failUnless(m.args[1] == 'foo!')
|
||||
self.assertEqual(m.args[1], 'foo!')
|
||||
finally:
|
||||
conf.supybot.plugins.Anonymous.requireRegistration.setValue(origreg)
|
||||
conf.supybot.plugins.Anonymous.allowPrivateTarget.setValue(origpriv)
|
||||
|
Loading…
Reference in New Issue
Block a user