def test_free(self):
    self.assertEqual(self.buffer.free, self.BUFFER_SIZE)
    self.buffer.write((b'1' * 100))
    self.assertEqual(self.buffer.free, (self.BUFFER_SIZE - 100))
def test_free(self):
    self.assertEqual(self.buffer.free, self.BUFFER_SIZE)
    self.buffer.write((b'1' * 100))
    self.assertEqual(self.buffer.free, (self.BUFFER_SIZE - 100))