def METHOD_NAME(self):
    buf = CircularBuffer(1)
    buf.write("1")
    self.assertEqual(buf.read(), "1")
    with self.assertRaises(BufferError) as err:
        buf.read()
    self.assertEqual(type(err.exception), BufferEmptyException)
    self.assertEqual(err.exception.args[0], "Circular buffer is empty")