def test_response_not_found(self): """test response_not_found""" response = http_server.response_not_found() str_response = response.decode() self.assertEqual("HTTP/1.1 404 Not Found", str_response.splitlines()[0])
def call_function_under_test(self): """call the 'response_not_found' function""" from http_server import response_not_found return response_not_found()