def test_append_line(self):
     dr = DataReader(None)
     dr._append_line("asdf")
     dr._append_line("jkl\r\n")
     dr.i += 1
     dr._append_line("qwerty")
     self.assertEqual(["asdfjkl\r\n", "qwerty"], dr.lines)
 def test_append_line(self):
     dr = DataReader(None)
     dr._append_line(b'asdf')
     dr._append_line(b'jkl\r\n')
     dr.i += 1
     dr._append_line(b'qwerty')
     self.assertEqual([b'asdfjkl\r\n', b'qwerty'], dr.lines)
 def test_append_line(self):
     dr = DataReader(None)
     dr._append_line('asdf')
     dr._append_line('jkl\r\n')
     dr.i += 1
     dr._append_line('qwerty')
     assert_equal(['asdfjkl\r\n', 'qwerty'], dr.lines)