Package translate :: Package convert :: Module test_po2prop :: Class TestPO2Prop
[hide private]
[frames] | no frames]

Class TestPO2Prop

source code

Known Subclasses:

Instance Methods [hide private]
 
po2prop(self, posource)
helper that converts po source to .properties source without requiring files
source code
 
merge2prop(self, propsource, posource, personality='java')
helper that merges po translations to .properties source without requiring files
source code
 
test_merging_simple(self)
check the simplest case of merging a translation
source code
 
test_hard_newlines_preserved(self)
check that we preserver hard coded newlines at the start and end of sentence
source code
 
test_space_preservation(self)
check that we preserve any spacing in properties files when merging
source code
 
test_merging_blank_entries(self)
check that we can correctly merge entries that are blank in the template
source code
 
test_merging_fuzzy(self)
check merging a fuzzy translation
source code
 
test_merging_propertyless_template(self)
check that when merging with a template with no property values that we copy the template
source code
 
test_personalities(self)
test that we output correctly for Java and Mozilla style property files.
source code
Method Details [hide private]

test_personalities(self)

source code 

test that we output correctly for Java and Mozilla style property files. Mozilla uses Unicode, while Java uses escaped Unicode