Beispiel #1
0
 def test_matches_any_keyword_false(self):
     http_resp = self.generate_response('{"none": "fail"}')
     self.assertFalse(OpenAPI.matches_any_keyword(http_resp))
Beispiel #2
0
 def test_matches_any_keyword_false(self):
     http_resp = self.generate_response('{"none": "fail"}')
     self.assertFalse(OpenAPI.matches_any_keyword(http_resp))
Beispiel #3
0
 def test_matches_any_keyword_true(self):
     http_resp = self.generate_response('{"consumes": "application/json"}')
     self.assertTrue(OpenAPI.matches_any_keyword(http_resp))
Beispiel #4
0
 def test_matches_any_keyword_true(self):
     http_resp = self.generate_response('{"consumes": "application/json"}')
     self.assertTrue(OpenAPI.matches_any_keyword(http_resp))