py$(PYV): commands[0]> python tests/tests.py --verbose test_append1 (__main__.TestBaseFile.test_append1) ... ok test_append2 (__main__.TestBaseFile.test_append2) ... ok test_append3 (__main__.TestBaseFile.test_append3) ... ok test_append4 (__main__.TestBaseFile.test_append4) ... ok test_comment_ordering (__main__.TestBaseFile.test_comment_ordering) Test that "# " comments appear before "#. " comments when writing. ... ok test_find1 (__main__.TestBaseFile.test_find1) ... ok test_find2 (__main__.TestBaseFile.test_find2) ... ok test_find3 (__main__.TestBaseFile.test_find3) ... ok test_find4 (__main__.TestBaseFile.test_find4) ... ok test_find5 (__main__.TestBaseFile.test_find5) ... ok test_insert1 (__main__.TestBaseFile.test_insert1) ... ok test_insert2 (__main__.TestBaseFile.test_insert2) ... ok test_metadata_as_entry (__main__.TestBaseFile.test_metadata_as_entry) ... ok test_ordered_metadata (__main__.TestBaseFile.test_ordered_metadata) ... ok test_save1 (__main__.TestBaseFile.test_save1) ... ok test_save2 (__main__.TestBaseFile.test_save2) ... ok test_sort (__main__.TestBaseFile.test_sort) ... ok test_str (__main__.TestBaseFile.test_str) ... $(@D)/tests/tests.py:520: DeprecationWarning: codecs.open() is deprecated. Use open() instead. f = codecs.open('tests/test_iso-8859-15.po', encoding='iso-8859-15') ok test_trailing_comment (__main__.TestBaseFile.test_trailing_comment) ... ok test_unicode1 (__main__.TestBaseFile.test_unicode1) ... $(@D)/tests/tests.py:505: DeprecationWarning: codecs.open() is deprecated. Use open() instead. f = codecs.open('tests/test_merge_after.po', encoding='utf8') ok test_unicode2 (__main__.TestBaseFile.test_unicode2) ... $(@D)/tests/tests.py:512: DeprecationWarning: codecs.open() is deprecated. Use open() instead. f = codecs.open('tests/test_iso-8859-15.po', encoding='iso-8859-15') ok test_wrapping (__main__.TestBaseFile.test_wrapping) ... ok test_detect_encoding1 (__main__.TestFunctions.test_detect_encoding1) Test that given encoding is returned when file has no encoding defined. ... ok test_detect_encoding2 (__main__.TestFunctions.test_detect_encoding2) Test with a .pot file. ... ok test_detect_encoding3 (__main__.TestFunctions.test_detect_encoding3) Test with an utf8 .po file. ... ok test_detect_encoding4 (__main__.TestFunctions.test_detect_encoding4) Test with utf8 data (no file). ... ok test_detect_encoding5 (__main__.TestFunctions.test_detect_encoding5) Test with utf8 .mo file. ... ok test_detect_encoding6 (__main__.TestFunctions.test_detect_encoding6) Test with iso-8859-15 .po file. ... ok test_detect_encoding7 (__main__.TestFunctions.test_detect_encoding7) Test with iso-8859-15 .mo file. ... ok test_empty (__main__.TestFunctions.test_empty) ... ok test_escape (__main__.TestFunctions.test_escape) Tests the escape function. ... ok test_indented_pofile (__main__.TestFunctions.test_indented_pofile) Test that an indented pofile returns a POFile instance. ... ok test_is_file (__main__.TestFunctions.test_is_file) ... :39: RuntimeWarning: bool is used as a file descriptor ok test_linenum_1 (__main__.TestFunctions.test_linenum_1) ... ok test_linenum_2 (__main__.TestFunctions.test_linenum_2) ... ok test_linenum_3 (__main__.TestFunctions.test_linenum_3) ... ok test_mofile_with_subclass (__main__.TestFunctions.test_mofile_with_subclass) Test that the mofile function correctly returns an instance of the ... ok test_pofile_and_mofile1 (__main__.TestFunctions.test_pofile_and_mofile1) Test bad usage of pofile/mofile. ... ok test_pofile_and_mofile10 (__main__.TestFunctions.test_pofile_and_mofile10) Test mofile with a bytes object. ... ok test_pofile_and_mofile2 (__main__.TestFunctions.test_pofile_and_mofile2) Test that the pofile function returns a POFile instance. ... ok test_pofile_and_mofile3 (__main__.TestFunctions.test_pofile_and_mofile3) Test that the mofile function returns a MOFile instance. ... ok test_pofile_and_mofile4 (__main__.TestFunctions.test_pofile_and_mofile4) Test that check_for_duplicates is passed to the instance. ... ok test_pofile_and_mofile5 (__main__.TestFunctions.test_pofile_and_mofile5) Test that detect_encoding works as expected. ... ok test_pofile_and_mofile6 (__main__.TestFunctions.test_pofile_and_mofile6) Test that encoding is default_encoding when detect_encoding is False. ... ok test_pofile_and_mofile7 (__main__.TestFunctions.test_pofile_and_mofile7) Test that encoding is ok when encoding is explicitly given. ... ok test_pofile_and_mofile8 (__main__.TestFunctions.test_pofile_and_mofile8) Test that weird occurrences are correctly parsed. ... ok test_pofile_and_mofile9 (__main__.TestFunctions.test_pofile_and_mofile9) Test that obsolete previous msgid are ignored ... ok test_pofile_with_subclass (__main__.TestFunctions.test_pofile_with_subclass) Test that the pofile function correctly returns an instance of the ... ok test_previous_msgctxt_1 (__main__.TestFunctions.test_previous_msgctxt_1) Test previous msgctxt multiline. ... ok test_previous_msgctxt_2 (__main__.TestFunctions.test_previous_msgctxt_2) Test previous msgctxt single line. ... ok test_previous_msgid_1 (__main__.TestFunctions.test_previous_msgid_1) Test previous msgid multiline. ... ok test_previous_msgid_2 (__main__.TestFunctions.test_previous_msgid_2) Test previous msgid single line. ... ok test_previous_msgid_3 (__main__.TestFunctions.test_previous_msgid_3) Test saving empty previous msgid. ... ok test_syntax_error1 (__main__.TestFunctions.test_syntax_error1) Test that syntax error is raised while processing a symbol parsing. ... ok test_ufeff_data_pofile (__main__.TestFunctions.test_ufeff_data_pofile) Test that an ufeff prefixed pofile returns a POFile instance. ... ok test_ufeff_pofile (__main__.TestFunctions.test_ufeff_pofile) Test that an ufeff prefixed pofile returns a POFile instance. ... ok test_unescape (__main__.TestFunctions.test_unescape) Tests the unescape function. ... ok test_unescaped_double_quote1 (__main__.TestFunctions.test_unescaped_double_quote1) Test that polib reports an error when unescaped double quote is found. ... ok test_unescaped_double_quote2 (__main__.TestFunctions.test_unescaped_double_quote2) Test that polib reports an error when unescaped double quote is found. ... ok test_unescaped_double_quote3 (__main__.TestFunctions.test_unescaped_double_quote3) Test that polib reports an error when unescaped double quote is found at the beginning of the string. ... ok test_unescaped_double_quote4 (__main__.TestFunctions.test_unescaped_double_quote4) Test that polib reports an error when unescaped double quote is found at the beginning of the string. ... ok test_windows_path_occurrences (__main__.TestFunctions.test_windows_path_occurrences) ... ok test_dummy_methods (__main__.TestMoFile.test_dummy_methods) This is stupid and just here for code coverage. ... ok test_invalid_version (__main__.TestMoFile.test_invalid_version) ... ok test_msgctxt (__main__.TestMoFile.test_msgctxt) ... ok test_no_header (__main__.TestMoFile.test_no_header) ... ok test_save_as_pofile (__main__.TestMoFile.test_save_as_pofile) Test for the MOFile.save_as_pofile() method. ... ok test_comment_starting_with_two_hashes (__main__.TestPoFile.test_comment_starting_with_two_hashes) ... ok test_compare1 (__main__.TestPoFile.test_compare1) ... ok test_compare2 (__main__.TestPoFile.test_compare2) ... ok test_compare3 (__main__.TestPoFile.test_compare3) ... ok test_compare4 (__main__.TestPoFile.test_compare4) ... ok test_compare5 (__main__.TestPoFile.test_compare5) ... ok test_compare6 (__main__.TestPoFile.test_compare6) ... ok test_compare7 (__main__.TestPoFile.test_compare7) ... ok test_compare8 (__main__.TestPoFile.test_compare8) ... ok test_fuzzy_entries (__main__.TestPoFile.test_fuzzy_entries) ... ok test_fuzzy_obsolete (__main__.TestPoFile.test_fuzzy_obsolete) ... ok test_merge (__main__.TestPoFile.test_merge) ... ok test_obsolete_entries (__main__.TestPoFile.test_obsolete_entries) ... ok test_percent_translated (__main__.TestPoFile.test_percent_translated) ... ok test_save_as_mofile (__main__.TestPoFile.test_save_as_mofile) Test for the POFile.save_as_mofile() method. ... ok test_set_fuzzy (__main__.TestPoFile.test_set_fuzzy) ... ok test_translated_entries (__main__.TestPoFile.test_translated_entries) ... ok test_untranslated_entries (__main__.TestPoFile.test_untranslated_entries) ... ok test_unusual_metadata_location (__main__.TestPoFile.test_unusual_metadata_location) ... ok test_word_garbage (__main__.TestPoFile.test_word_garbage) ... ok ---------------------------------------------------------------------- Ran 87 tests OK py$(PYV): OK congratulations :)