Exemple #1
0
 def test_stream_with_non_utf_unicode_character(self):
     stream = [b'\xed\xf3\xf3']
     output, = utils.stream_as_text(stream)
     assert output == '���'
Exemple #2
0
 def test_stream_with_utf_character(self):
     stream = ['ěĝ'.encode('utf-8')]
     output, = utils.stream_as_text(stream)
     assert output == 'ěĝ'
Exemple #3
0
 def test_stream_with_utf_character(self):
     stream = ["ěĝ".encode("utf-8")]
     output, = utils.stream_as_text(stream)
     assert output == "ěĝ"