def test_validation_fails_on_missing_required_key(self, required_dict):
     for key in required_dict.keys():
         test_dict = required_dict.copy()
         test_dict.pop(key)
         element = examinee.WebhookDispatcherConfig(name='foo', raw_dict=test_dict)
         with pytest.raises(ModelValidationError):
             element.validate()
 def test_validation_succeeds_on_unknown_key(self, required_dict):
     test_dict = {**required_dict, **{'foo': 'bar'}}
     element = examinee.WebhookDispatcherConfig(name='foo',
                                                raw_dict=test_dict)
     element.validate()
 def test_validation_succeeds_on_required_dict(self, required_dict):
     element = examinee.WebhookDispatcherConfig(name='foo',
                                                raw_dict=required_dict)
     element.validate()