From 507b95a2eb87ce2e98af023be6ca0f73df5c0d91 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 9 Dec 2008 07:24:14 +0000 Subject: [PATCH] Fix a couple Misc tests --- plugins/Misc/test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/Misc/test.py b/plugins/Misc/test.py index 96ae84bf8..bf7948dbd 100644 --- a/plugins/Misc/test.py +++ b/plugins/Misc/test.py @@ -1,5 +1,6 @@ ### # Copyright (c) 2002-2005, Jeremiah Fincher +# Copyright (c) 2008, James Vega # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -177,7 +178,7 @@ class MiscTestCase(ChannelPluginTestCase): self.getMsg('foo bar baz') chars = conf.supybot.reply.whenAddressedBy.chars() chars = re.escape(chars) - self.assertRegexp('echo [last]', r'. [%s]foo bar baz' % chars) + self.assertRegexp('echo [last]', r'[%s]foo bar baz' % chars) finally: tsConfig.setValue(orig) @@ -186,7 +187,7 @@ class MiscTestCase(ChannelPluginTestCase): orig = nickConfig() try: nickConfig.setValue(True) - self.feedMsg('foo bar baz') + self.getMsg('foo bar baz') chars = conf.supybot.reply.whenAddressedBy.chars() chars = re.escape(chars) self.assertRegexp('echo [last]',