def test_content_type_match_false(self): http_resp = self.generate_response('', 'image/jpeg') self.assertFalse(OpenAPI.content_type_match(http_resp))
def test_content_type_match_false(self): http_resp = self.generate_response('', 'image/jpeg') self.assertFalse(OpenAPI.content_type_match(http_resp))
def test_content_type_match_true(self): http_resp = self.generate_response('{}') self.assertTrue(OpenAPI.content_type_match(http_resp))
def test_content_type_match_true(self): http_resp = self.generate_response('{}') self.assertTrue(OpenAPI.content_type_match(http_resp))