byro-leinelab/byro_shackspace/tests/test_csv_file_encoding.py

8 lines
219 B
Python
Raw Normal View History

import os.path
2018-01-13 13:05:49 +01:00
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