Beispiel #1
0
def test_guess_encoding_iso8859():
    assert File.guess_encoding(TEST_ISO8859_PATH) == 'iso-8859-1'
Beispiel #2
0
def test_guess_encoding_unicode():
    assert File.guess_encoding(TEST_UNICODE_PATH) == 'utf-8'
Beispiel #3
0
def test_guess_encoding_binary():
    assert File.guess_encoding(TEST_FILE1_PATH) == 'binary'
Beispiel #4
0
def test_guess_encoding_ascii():
    assert File.guess_encoding(TEST_ASCII_PATH) == 'us-ascii'
Beispiel #5
0
def test_guess_file_type():
    assert File.guess_file_type(TEST_FILE1_PATH) == 'data'