From 9eafe29c303bc997f3a9dc4e7a50c4dd9f9c6f2b Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Sat, 22 Aug 2015 13:43:27 +0000 Subject: [PATCH] Alias: fix tests --- plugins/Alias/test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/Alias/test.py b/plugins/Alias/test.py index f481e4493..adfacca23 100644 --- a/plugins/Alias/test.py +++ b/plugins/Alias/test.py @@ -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')