コード例 #1
0
 def test_support_surrogates(self):
     assert bytes_to_str(u'\ud83d\ude4f') == u'\ud83d\ude4f'
コード例 #2
0
 def test_from_unicode(self):
     assert isinstance(bytes_to_str(u'foo'), text_t)
コード例 #3
0
 def test_from_bytes(self):
     assert bytes_to_str(b'foo')
コード例 #4
0
ファイル: test_utils.py プロジェクト: smurfix/aio-py-amqp
 def test_from_bytes(self):
     assert bytes_to_str(b'foo')
コード例 #5
0
ファイル: test_utils.py プロジェクト: smurfix/aio-py-amqp
 def test_support_surrogates(self):
     assert bytes_to_str(u'\ud83d\ude4f') == u'\ud83d\ude4f'
コード例 #6
0
ファイル: test_utils.py プロジェクト: Itxaka/py-amqp
 def test_from_unicode(self):
     assert isinstance(bytes_to_str(u'foo'), text_t)
コード例 #7
0
ファイル: test_utils.py プロジェクト: smurfix/aio-py-amqp
 def test_from_unicode(self):
     assert isinstance(bytes_to_str('foo'), str)
コード例 #8
0
 def test_from_bytes(self):
     self.assertTrue(bytes_to_str(b'foo'))
コード例 #9
0
 def test_from_unicode(self):
     self.assertIsInstance(bytes_to_str('foo'), text_t)
コード例 #10
0
ファイル: test_utils.py プロジェクト: adamchainz/py-amqp
 def test_from_bytes(self):
     self.assertTrue(bytes_to_str(b'foo'))
コード例 #11
0
ファイル: test_utils.py プロジェクト: adamchainz/py-amqp
 def test_from_unicode(self):
     self.assertIsInstance(bytes_to_str('foo'), text_t)
コード例 #12
0
ファイル: test_utils.py プロジェクト: moisesguimaraes/py-amqp
 def test_from_unicode(self):
     assert isinstance(bytes_to_str('foo'), str)