Пример #1
0
 def test_normalize_message_list(self):
     self.assertEqual(['abc', 'def'],
                      tokens.normalize_message(['abc', 'def']))
     self.assertEqual(['abc', 'def'],
                      tokens.normalize_message(('abc', 'def')))
Пример #2
0
 def test_normalize_message_unicode(self):
     self.assertEqual(['\xd0\xbf', 'abc'],
                      tokens.normalize_message([u'\u043f', 'abc']))
Пример #3
0
 def test_normalize_message_unicode(self):
   self.assertEqual(
       ['\xd0\xbf', 'abc'], tokens.normalize_message([u'\u043f', 'abc']))
Пример #4
0
 def test_normalize_message_one(self):
     self.assertEqual(['abc'], tokens.normalize_message('abc'))
Пример #5
0
 def test_normalize_message_list(self):
   self.assertEqual(['abc', 'def'], tokens.normalize_message(['abc', 'def']))
   self.assertEqual(['abc', 'def'], tokens.normalize_message(('abc', 'def')))
Пример #6
0
 def test_normalize_message_one(self):
   self.assertEqual(['abc'], tokens.normalize_message('abc'))
Пример #7
0
 def test_normalize_message_unicode(self):
     self.assertEqual(["\xd0\xbf", "abc"], tokens.normalize_message([u"\u043f", "abc"]))
Пример #8
0
 def test_normalize_message_list(self):
     self.assertEqual(["abc", "def"], tokens.normalize_message(["abc", "def"]))
     self.assertEqual(["abc", "def"], tokens.normalize_message(("abc", "def")))
Пример #9
0
 def test_normalize_message_one(self):
     self.assertEqual(["abc"], tokens.normalize_message("abc"))