def test_matches_any_keyword_false(self): http_resp = self.generate_response('{"none": "fail"}') self.assertFalse(OpenAPI.matches_any_keyword(http_resp))
def test_matches_any_keyword_false(self): http_resp = self.generate_response('{"none": "fail"}') self.assertFalse(OpenAPI.matches_any_keyword(http_resp))
def test_matches_any_keyword_true(self): http_resp = self.generate_response('{"consumes": "application/json"}') self.assertTrue(OpenAPI.matches_any_keyword(http_resp))
def test_matches_any_keyword_true(self): http_resp = self.generate_response('{"consumes": "application/json"}') self.assertTrue(OpenAPI.matches_any_keyword(http_resp))