158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 | |
def test_get_encoding_ascii(): |
temp = py.test.ensuretemp('test_get_encoding') |
fpath = temp.join('ascii.py') |
fpath.write(str(py.code.Source("""\ |
def foo(): |
return 'foo' |
-> """))) |
|
assert get_module_encoding(fpath.strpath) == 'ISO-8859-1' | |