def test_normalize_message_list(self): self.assertEqual(['abc', 'def'], tokens.normalize_message(['abc', 'def'])) self.assertEqual(['abc', 'def'], tokens.normalize_message(('abc', 'def')))
def test_normalize_message_unicode(self): self.assertEqual(['\xd0\xbf', 'abc'], tokens.normalize_message([u'\u043f', 'abc']))
def test_normalize_message_unicode(self): self.assertEqual( ['\xd0\xbf', 'abc'], tokens.normalize_message([u'\u043f', 'abc']))
def test_normalize_message_one(self): self.assertEqual(['abc'], tokens.normalize_message('abc'))
def test_normalize_message_unicode(self): self.assertEqual(["\xd0\xbf", "abc"], tokens.normalize_message([u"\u043f", "abc"]))
def test_normalize_message_list(self): self.assertEqual(["abc", "def"], tokens.normalize_message(["abc", "def"])) self.assertEqual(["abc", "def"], tokens.normalize_message(("abc", "def")))
def test_normalize_message_one(self): self.assertEqual(["abc"], tokens.normalize_message("abc"))