MoobotFactoids: Fix encoding issue in tests.

This commit is contained in:
Valentin Lorentz 2013-01-05 19:09:46 +01:00
parent bc7051e515
commit 5afff1c0d6

View File

@ -264,10 +264,10 @@ class FactoidsTestCase(ChannelPluginTestCase):
'Key search for "foo" '
'(2 found): "foo" and "foo\'"')
# Check unicode stuff
self.assertResponse('listkeys Б', 'No keys matching "Б" found.')
self.assertNotError('АБВГДЕЖ is foo')
self.assertNotError('АБВГДЕЖЗИ is foo')
self.assertResponse('listkeys Б',
self.assertResponse(u'listkeys Б', 'No keys matching "Б" found.')
self.assertNotError(u'АБВГДЕЖ is foo')
self.assertNotError(u'АБВГДЕЖЗИ is foo')
self.assertResponse(u'listkeys Б',
'Key search for "Б" '
'(2 found): "АБВГДЕЖ" and "АБВГДЕЖЗИ"')
finally: