

def assertRaisesRequiredProperty(self, obj, key):
    context = self.get_invalid_data_context(obj)
    self.assertIn("Failed validating 'required' in schema", context.exception.message)
    context.assertIn("'{0}' is a required property".format(key), context.exception.message)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/base.py BaseValidatorTest.assertRaisesRequiredProperty/VarMisuse@36/57 `self`->`context`