From 115b3bdea98a7573e6868c775451c7a55bc827fb Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 24 Jul 2004 04:59:46 +0000 Subject: [PATCH] Updated for Utilities/Format split. --- test/test_BadWords.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_BadWords.py b/test/test_BadWords.py index 0ff6a786b..6d931af8f 100644 --- a/test/test_BadWords.py +++ b/test/test_BadWords.py @@ -32,7 +32,7 @@ from testsupport import * class BadWordsTestCase(PluginTestCase): - plugins = ('BadWords', 'Utilities') + plugins = ('BadWords', 'Utilities', 'Format') badwords = ('shit', 'ass') def tearDown(self): default = conf.supybot.plugins.BadWords.words.default @@ -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 [strjoin "" %s]' % ' '.join(word), + self.assertRegexp('echo [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 [strjoin "" %s]' % ' '.join(word), word) + self.assertRegexp('echo [join "" %s]' % ' '.join(word), word) def testAddbadwords(self): self.assertNotError('badwords add %s' % ' '.join(self.badwords))