very simple test to show latin-1 is readable

This commit is contained in:
Andreas Madsack 2018-01-11 20:13:40 +01:00
parent f7824d45ca
commit 70676030e9

View File

@ -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