From 96fae12fd207069cdbd6f45cdefc61c7343e41a8 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Mon, 22 Apr 2013 17:46:35 +0000 Subject: [PATCH] Anonymous: Use assertEqual in tests instead of failUnless(... == ...). --- plugins/Anonymous/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Anonymous/test.py b/plugins/Anonymous/test.py index 96a570853..b4ea46911 100644 --- a/plugins/Anonymous/test.py +++ b/plugins/Anonymous/test.py @@ -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)