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