very simple test to show latin-1 is readable
This commit is contained in:
parent
f7824d45ca
commit
70676030e9
7
byro_shackspace/tests/test_csv_file_encoding.py
Normal file
7
byro_shackspace/tests/test_csv_file_encoding.py
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user