def test_write(self):
    self.buffer.write((b'1' * 8192))
    self.buffer.write((b'2' * 4096))
    self.assertEqual(self.buffer.length, (8192 + 4096))
def test_write(self):
    self.buffer.write((b'1' * 8192))
    self.buffer.write((b'2' * 4096))
    self.assertEqual(self.buffer.length, (8192 + 4096))