Package translate :: Package storage :: Module test_pypo :: Class TestPYPOUnit
[hide private]
[frames] | no frames]

Class TestPYPOUnit

source code

test_base.TestTranslationUnit --+    
                                |    
               test_po.TestPOUnit --+
                                    |
                                   TestPYPOUnit

Nested Classes [hide private]
  UnitClass
Base class for translation units.
Instance Methods [hide private]
 
test_plurals(self)
Tests that plurals are handled correctly.
source code
 
test_plural_reduction(self)
checks that reducing the number of plurals supplied works
source code
 
test_notes(self)
tests that the generic notes API works
source code
 
test_notes_withcomments(self)
tests that when we add notes that look like comments that we treat them properly
source code
 
test_wrap_firstlines(self)
tests that we wrap the first line correctly a first line if longer then 71 chars as at 71 chars we should align the text on the left and preceed with with a msgid ""
source code
 
test_wrap_on_newlines(self)
test that we wrap newlines on a real
source code
 
test_wrap_on_max_line_length(self)
test that we wrap all lines on the maximum line length
source code
 
test_spacing_max_line(self)
Test that the spacing of text is done the same as msgcat.
source code

Inherited from test_po.TestPOUnit: test_adding_empty_note, test_errors, test_extract_msgidcomments_from_text, test_isheader, test_istranslatable, test_markreview, test_no_plural_settarget, test_wrapping_bug

Inherited from test_base.TestTranslationUnit: setup_method, test_create, test_difficult_escapes, test_eq, test_escapes, test_isfuzzy, test_note_sanity, test_target