Package translate :: Package storage :: Module test_po :: Class TestPOFile
[hide private]
[frames] | no frames]

Class TestPOFile

source code

test_base.TestTranslationStore --+
                                 |
                                TestPOFile
Known Subclasses:

Nested Classes [hide private]
  StoreClass
this represents a .po file containing various units
Instance Methods [hide private]
 
poparse(self, posource)
helper that parses po source without requiring files
source code
 
poregen(self, posource)
helper that converts po source to pofile object and back
source code
 
pomerge(self, oldmessage, newmessage, authoritative)
helper that merges two messages
source code
 
test_simpleentry(self)
checks that a simple po entry is parsed correctly
source code
 
test_copy(self)
checks that we can copy all the needed PO fields
source code
 
test_parse_source_string(self)
parse a string
source code
 
test_parse_file(self)
test parsing a real file
source code
 
test_unicode(self)
check that the po class can handle Unicode characters
source code
 
test_plurals(self) source code
 
test_plural_unicode(self)
tests that all parts of the multistring are unicode.
source code
 
wtest_kde_plurals(self)
Tests kde-style plurals.
source code
 
test_empty_lines_notes(self)
Tests that empty comment lines are preserved
source code
 
test_fuzzy(self)
checks that fuzzy functionality works as expected
source code
 
xtest_makeobsolete_untranslated(self)
Tests making an untranslated unit obsolete
source code
 
test_merging_automaticcomments(self)
checks that new automatic comments override old ones
source code
 
test_malformed_units(self)
Test that we handle malformed units reasonably.
source code
 
test_malformed_obsolete_units(self)
Test that we handle malformed obsolete units reasonably.
source code
 
test_uniforum_po(self)
Test that we handle Uniforum PO files.
source code
 
test_obsolete(self)
Tests that obsolete messages work
source code
 
test_header_escapes(self) source code
 
test_makeobsolete(self)
Tests making a unit obsolete
source code
 
test_makeobsolete_plural(self)
Tests making a plural unit obsolete
source code
 
test_makeobsolete_msgctxt(self)
Tests making a unit with msgctxt obsolete
source code
 
test_makeobsolete_msgidcomments(self)
Tests making a unit with msgidcomments obsolete
source code
 
test_multiline_obsolete(self)
Tests for correct output of mulitline obsolete messages
source code
 
test_merge_duplicates(self)
checks that merging duplicates works
source code
 
test_merge_mixed_sources(self)
checks that merging works with different source location styles
source code
 
test_parse_context(self)
Tests that msgctxt is parsed correctly and that it is accessible via the api methods.
source code
 
test_parse_advanced_context(self)
Tests that some weird possible msgctxt scenarios are parsed correctly.
source code
 
test_kde_context(self)
Tests that kde-style msgid comments can be retrieved via getcontext().
source code
 
test_id(self)
checks that ids work correctly
source code

Inherited from test_base.TestTranslationStore: check_equality, reparse, setup_method, teardown_method, test_add, test_create_blank, test_files, test_find, test_markup, test_nonascii, test_parse, test_save, test_translate

Method Details [hide private]

wtest_kde_plurals(self)

source code 

Tests kde-style plurals. (Bug: 191)