def test_init(self): self.request = HttpRequest(self.msg) self.assertRaises(Exception, self.request.get_header, 'accept')
def setUp(self): self.request = HttpRequest(self.msg) self.request.build()
def build_message(self): self._msg = HttpRequest(self._buffer) self._msg.build()