Ejemplo 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))
Ejemplo 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))
Ejemplo 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))
Ejemplo 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))