mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Alias: fix tests
This commit is contained in:
parent
ff4040f479
commit
9eafe29c30
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user