Permalink
Browse files

Anonymous: Use assertEqual in tests instead of failUnless(... == ...).

  • Loading branch information...
1 parent 6b1131b commit 96fae12fd207069cdbd6f45cdefc61c7343e41a8 @ProgVal committed Apr 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/Anonymous/test.py
View
4 plugins/Anonymous/test.py
@@ -40,10 +40,10 @@ def testSay(self):
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)

0 comments on commit 96fae12

Please sign in to comment.