mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Fix a couple Misc tests
This commit is contained in:
parent
0a4c66071b
commit
507b95a2eb
@ -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]',
|
||||||
|
Loading…
Reference in New Issue
Block a user