def test_response_method_not_allowed(self): """test response_method_not_allowed""" response = http_server.response_method_not_allowed() str_response = response.decode() self.assertEqual("HTTP/1.1 405 Method Not Allowed", str_response.splitlines()[0])
def call_function_under_test(self): """call the `response_method_not_allowed` function""" from http_server import response_method_not_allowed return response_method_not_allowed()
def call_function_under_test(self): """call the `response_method_not_allowed` function""" from http_server import response_method_not_allowed return response_method_not_allowed()