mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +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.conf as conf
|
||||||
import supybot.plugin as plugin
|
import supybot.plugin as plugin
|
||||||
import supybot.registry as registry
|
import supybot.registry as registry
|
||||||
|
from supybot.utils.minisix import u
|
||||||
|
|
||||||
from . import plugin as Alias
|
from . import plugin as Alias
|
||||||
|
|
||||||
@ -128,11 +129,11 @@ class AliasTestCase(ChannelPluginTestCase):
|
|||||||
self.assertResponse('myre foo bar', 's/foo/bar/g')
|
self.assertResponse('myre foo bar', 's/foo/bar/g')
|
||||||
|
|
||||||
def testUnicode(self):
|
def testUnicode(self):
|
||||||
self.assertNotError(u'alias add \u200b echo foo')
|
self.assertNotError(u('alias add \u200b echo foo'))
|
||||||
self.assertResponse(u'\u200b', 'foo')
|
self.assertResponse(u('\u200b'), 'foo')
|
||||||
|
|
||||||
self.assertNotError(u'alias add café echo bar')
|
self.assertNotError('alias add café echo bar')
|
||||||
self.assertResponse(u'café', 'bar')
|
self.assertResponse('café', 'bar')
|
||||||
|
|
||||||
def testSimpleAliasWithoutArgsImpliesDollarStar(self):
|
def testSimpleAliasWithoutArgsImpliesDollarStar(self):
|
||||||
self.assertNotError('alias add exo echo')
|
self.assertNotError('alias add exo echo')
|
||||||
|
Loading…
Reference in New Issue
Block a user