def test_from_recv_buffer(self):
     io = IO(None)
     io.recv_buffer = "test\r\ndata"
     dr = DataReader(io)
     dr.from_recv_buffer()
     self.assertEqual(["test\r\n", "data"], dr.lines)
 def test_from_recv_buffer(self):
     io = IO(None)
     io.recv_buffer = b'test\r\ndata'
     dr = DataReader(io)
     dr.from_recv_buffer()
     self.assertEqual([b'test\r\n', b'data'], dr.lines)
 def test_from_recv_buffer(self):
     io = IO(None)
     io.recv_buffer = 'test\r\ndata'
     dr = DataReader(io)
     dr.from_recv_buffer()
     assert_equal(['test\r\n', 'data'], dr.lines)