byro-leinelab/byro_shackspace/tests/test_csv_file_encoding.py
2018-01-11 20:13:40 +01:00

8 lines
219 B
Python

import os.path
def test_file_encoding():
filename = os.path.join(os.path.dirname(__file__), 'fixtures/transactions.csv')
with open(filename, encoding='iso-8859-1') as fp:
assert len(fp.read()) == 1086