def test_support_surrogates(self): assert bytes_to_str(u'\ud83d\ude4f') == u'\ud83d\ude4f'
def test_from_unicode(self): assert isinstance(bytes_to_str(u'foo'), text_t)
def test_from_bytes(self): assert bytes_to_str(b'foo')
def test_from_unicode(self): assert isinstance(bytes_to_str('foo'), str)
def test_from_bytes(self): self.assertTrue(bytes_to_str(b'foo'))
def test_from_unicode(self): self.assertIsInstance(bytes_to_str('foo'), text_t)