

def assertRaisesInvalidType(self, obj, value, expected_value):
    context = self.get_invalid_data_context(obj)
    self.assertIn("Failed validating 'type' in schema", context.exception.message)
    self.assertIn('{0} is not of type {1}'.format(obj, expected_value), context.exception.message)

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/base.py BaseValidatorTest.assertRaisesInvalidType/VarMisuse@46/84 `value`->`obj`