def test_should_return_unicode(self): self.assertTrue(isinstance(smart_decode("test"), unicode)) self.assertTrue(isinstance(smart_decode(u"test"), unicode))
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"é")
def test_should_convert_utf8(self): self.assertEqual(smart_decode('é'), u"é")