Example #1
0
 def test_content_type_match_false(self):
     http_resp = self.generate_response('', 'image/jpeg')
     self.assertFalse(OpenAPI.content_type_match(http_resp))
Example #2
0
 def test_content_type_match_false(self):
     http_resp = self.generate_response('', 'image/jpeg')
     self.assertFalse(OpenAPI.content_type_match(http_resp))
Example #3
0
 def test_content_type_match_true(self):
     http_resp = self.generate_response('{}')
     self.assertTrue(OpenAPI.content_type_match(http_resp))
Example #4
0
 def test_content_type_match_true(self):
     http_resp = self.generate_response('{}')
     self.assertTrue(OpenAPI.content_type_match(http_resp))