Fix a couple Misc tests

This commit is contained in:
James Vega 2008-12-09 07:24:14 +00:00
parent 0a4c66071b
commit 507b95a2eb
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
### ###
# Copyright (c) 2002-2005, Jeremiah Fincher # Copyright (c) 2002-2005, Jeremiah Fincher
# Copyright (c) 2008, James Vega
# All rights reserved. # All rights reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@ -177,7 +178,7 @@ class MiscTestCase(ChannelPluginTestCase):
self.getMsg('foo bar baz') self.getMsg('foo bar baz')
chars = conf.supybot.reply.whenAddressedBy.chars() chars = conf.supybot.reply.whenAddressedBy.chars()
chars = re.escape(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: finally:
tsConfig.setValue(orig) tsConfig.setValue(orig)
@ -186,7 +187,7 @@ class MiscTestCase(ChannelPluginTestCase):
orig = nickConfig() orig = nickConfig()
try: try:
nickConfig.setValue(True) nickConfig.setValue(True)
self.feedMsg('foo bar baz') self.getMsg('foo bar baz')
chars = conf.supybot.reply.whenAddressedBy.chars() chars = conf.supybot.reply.whenAddressedBy.chars()
chars = re.escape(chars) chars = re.escape(chars)
self.assertRegexp('echo [last]', self.assertRegexp('echo [last]',