diff --git a/byro_shackspace/tests/test_csv_file_encoding.py b/byro_shackspace/tests/test_csv_file_encoding.py new file mode 100644 index 0000000..320393e --- /dev/null +++ b/byro_shackspace/tests/test_csv_file_encoding.py @@ -0,0 +1,7 @@ +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 +