

def assertRaisesTooLong(self, obj, stringified_values):
    context = self.get_invalid_data_context(obj)
    self.assertIn('{0} is too long'.format(stringified_values), context.exception.message)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/base.py BaseValidatorTest.assertRaisesTooLong/original