Example #1
0
 def test_not_containing_a_custom_response_body(self):
     with self.assertRaises(ValueError):
         validate_custom_response_bodies({"foo": "bar"})
Example #2
0
 def test_valid_dict(self):
     validate_custom_response_bodies({"foo": CustomResponseBody()})
Example #3
0
 def test_not_a_dict(self):
     with self.assertRaises(ValueError):
         validate_custom_response_bodies("foo")
Example #4
0
 def test_valid_empty_dict(self):
     validate_custom_response_bodies({})