mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +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) 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]',
|
||||
|
Loading…
Reference in New Issue
Block a user