def test_close(self): handler = RequestHandler() handler.close()
def test_flush(self): handler = RequestHandler() handler.buffer[124] = ['pretend record'] handler.flush() self.assertEqual(handler.buffer, {})