def assert_http_match(self, response, expected_status, expected_headers,
                        expected_body):
    self.assertEqual(str(expected_status), self.response_status)

    # Verify that headers match.  Order shouldn't matter.
    self.assertEqual(len(self.response_headers), len(expected_headers))
    self.assertEqual(set(self.response_headers), set(expected_headers))
    # Make sure there are no duplicate headers in the response.
    self.assertEqual(len(self.response_headers),
                     len(set(header for header, _ in self.response_headers)))

    # Convert the body from an iterator to a string.
    body = ''.join(response)
    self.assertEqual(expected_body, body)
Called when the configuration of the module has changed.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/endpoints/test_utils.py/TestsWithStartResponse.assert_http_match--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/devappserver2/java_runtime.py/JavaRuntimeInstanceFactory.configuration_changed