'Test buffering over line protocol: data received should match buffer.'

def test_buffer(self):

    t = proto_helpers.StringTransport()
    a = LineOnlyTester()
    a.makeConnection(t)
    for c in iterbytes(self.buffer):
        a.dataReceived(c)
    self.assertEqual(a.received, self.buffer.split('\n')[:(-1)])
