def mock_response(self, content_type):
    responses.add(responses.GET, 'http://example.com', content_type=content_type)
def mock_response(self, content_type):
    responses.add(responses.GET, 'http://example.com', content_type=content_type)