From 01513bcb952c0b521fbc8b161209b7758433fe52 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 30 Nov 2004 04:49:21 +0000 Subject: [PATCH] Fixed a couple test failures. --- plugins/Format.py | 2 +- test/test_BadWords.py | 4 ++-- test/test_Format.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/Format.py b/plugins/Format.py index e873630ad..948d14777 100644 --- a/plugins/Format.py +++ b/plugins/Format.py @@ -96,7 +96,7 @@ class Format(callbacks.Privmsg): Joins all the arguments together with . """ irc.reply(sep.join(args)) - join = wrap(join, ['something'], allowExtra=True) + join = wrap(join, ['anything'], allowExtra=True) def translate(self, irc, msg, args, bad, good, text): """ diff --git a/test/test_BadWords.py b/test/test_BadWords.py index 597283a4e..d22c5d6cb 100644 --- a/test/test_BadWords.py +++ b/test/test_BadWords.py @@ -43,14 +43,14 @@ class BadWordsTestCase(PluginTestCase): self.assertRegexp('echo %s' % word, '(?!%s)' % word) self.assertRegexp('echo [colorize %s]' % word, '(?!%s)' % word) self.assertRegexp('echo foo%sbar' % word, '(?!%s)' % word) - self.assertRegexp('echo [join "" %s]' % ' '.join(word), + self.assertRegexp('echo [format join "" %s]' % ' '.join(word), '(?!%s)' % word) def _NegTest(self): for word in self.badwords: self.assertRegexp('echo %s' % word, word) self.assertRegexp('echo foo%sbar' % word, word) - self.assertRegexp('echo [join "" %s]' % ' '.join(word), word) + self.assertRegexp('echo [format join "" %s]' % ' '.join(word),word) def testAddbadwords(self): self.assertNotError('badwords add %s' % ' '.join(self.badwords)) diff --git a/test/test_Format.py b/test/test_Format.py index 8d707c4a6..6a3f80840 100644 --- a/test/test_Format.py +++ b/test/test_Format.py @@ -50,6 +50,7 @@ class UtilitiesTestCase(PluginTestCase): def testJoin(self): self.assertResponse('join + foo bar baz', 'foo+bar+baz') + self.assertResponse('join "" foo bar baz', 'foobarbaz') def testTranslate(self): self.assertResponse('translate 123 456 1234567890', '4564567890')