Exemplo n.º 1
0
 def test_read_bytes(self):
     """TextIteratorIO converts bytes as text."""
     file_obj = TextIteratorIO(generate_hello_bytes())
     self.assertEqual(file_obj.read(), HELLO_TEXT)
Exemplo n.º 2
0
 def test_read_bytes(self):
     """TextIteratorIO converts bytes as text."""
     file_obj = TextIteratorIO(generate_hello_bytes())
     self.assertEqual(file_obj.read(), HELLO_TEXT)
Exemplo n.º 3
0
 def test_read_text(self):
     """TextIteratorIO obviously accepts text generator."""
     file_obj = TextIteratorIO(generate_hello_text())
     self.assertEqual(file_obj.read(), HELLO_TEXT)
Exemplo n.º 4
0
 def test_read_text(self):
     """TextIteratorIO obviously accepts text generator."""
     file_obj = TextIteratorIO(generate_hello_text())
     self.assertEqual(file_obj.read(), HELLO_TEXT)