

def test_booleans_coerce_fail(self):
    try:
        typeinference.normalize_column_type(['False', 'TRUE', 'FALSE', '17', ''], normal_type=bool)
    except InvalidValueForTypeException as e:
        self.assertEqual(e.index, 3)
        e.assertEqual(e.value, '17')
        self.assertEqual(e.normal_type, bool)
    else:
        raise AssertionError('Expected InvalidValueForTypeException')

dataset/ETHPy150Open wireservice/csvkit/tests/test_typeinference.py TestNormalizeType.test_booleans_coerce_fail/VarMisuse@54/81 `self`->`e`