Пример #1
0
 def test_close(self):
     handler = RequestHandler()
     handler.close()
Пример #2
0
 def test_close(self):
     handler = RequestHandler()
     handler.close()
Пример #3
0
 def test_flush(self):
     handler = RequestHandler()
     handler.buffer[124] = ['pretend record']
     handler.flush()
     self.assertEqual(handler.buffer, {})
Пример #4
0
 def test_flush(self):
     handler = RequestHandler()
     handler.buffer[124] = ['pretend record']
     handler.flush()
     self.assertEqual(handler.buffer, {})