Esempio n. 1
0
 def test_matches_any_keyword_false(self):
     http_resp = self.generate_response('{"none": "fail"}')
     self.assertFalse(OpenAPI.matches_any_keyword(http_resp))
Esempio n. 2
0
 def test_matches_any_keyword_false(self):
     http_resp = self.generate_response('{"none": "fail"}')
     self.assertFalse(OpenAPI.matches_any_keyword(http_resp))
Esempio n. 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))
Esempio n. 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))