Alias: fix tests

This commit is contained in:
jacksonmj 2015-08-22 13:43:27 +00:00
parent ff4040f479
commit 9eafe29c30

View File

@ -33,6 +33,7 @@ from supybot.test import *
import supybot.conf as conf
import supybot.plugin as plugin
import supybot.registry as registry
from supybot.utils.minisix import u
from . import plugin as Alias
@ -128,11 +129,11 @@ class AliasTestCase(ChannelPluginTestCase):
self.assertResponse('myre foo bar', 's/foo/bar/g')
def testUnicode(self):
self.assertNotError(u'alias add \u200b echo foo')
self.assertResponse(u'\u200b', 'foo')
self.assertNotError(u('alias add \u200b echo foo'))
self.assertResponse(u('\u200b'), 'foo')
self.assertNotError(u'alias add café echo bar')
self.assertResponse(u'café', 'bar')
self.assertNotError('alias add café echo bar')
self.assertResponse('café', 'bar')
def testSimpleAliasWithoutArgsImpliesDollarStar(self):
self.assertNotError('alias add exo echo')