def test_should_return_unicode(self):
     self.assertTrue(isinstance(smart_decode("test"), unicode))
     self.assertTrue(isinstance(smart_decode(u"test"), unicode))
示例#2
0
 def test_should_return_unicode(self):
     self.assertTrue(isinstance(smart_decode('test'), unicode))
     self.assertTrue(isinstance(smart_decode(u'test'), unicode))
 def test_should_convert_utf8(self):
     self.assertEqual(smart_decode("é"), u"é")
示例#4
0
 def test_should_convert_utf8(self):
     self.assertEqual(smart_decode('é'), u"é")