

def test_floats_coerce_fail(self):
    try:
        typeinference.normalize_column_type(['1', '-87.413', '418000000.0', 'Hello, world!'], normal_type=float)
    except InvalidValueForTypeException as e:
        self.assertEqual(e.index, 3)
        self.assertEqual(e.value, 'Hello, world!')
        self.assertEqual(e.normal_type, float)
    else:
        raise AssertionError('Expected InvalidValueForTypeException')

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