

def assertRaisesNonUnique(self, obj, stringified_values):
    context = self.get_invalid_data_context(obj)
    context.assertIn('{0} has non-unique elements'.format(stringified_values), context.exception.message)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/base.py BaseValidatorTest.assertRaisesNonUnique/VarMisuse@23/34 `self`->`context`