

def test_padded_ints_coerce_fail(self):
    try:
        typeinference.normalize_column_type(['0001', '0997', '8.7', ''], normal_type=int)
    except InvalidValueForTypeException as e:
        self.assertEqual(e.index, 0)
        self.assertEqual(e.value, '0001')
        self.assertEqual(e.normal_type, int)
    else:
        raise AssertionError('Expected InvalidValueForTypeException')

dataset/ETHPy150Open wireservice/csvkit/tests/test_typeinference.py TestNormalizeType.test_padded_ints_coerce_fail/original