Package translate :: Package convert :: Module test_prop2po :: Class TestProp2PO

[hide private]
[frames] | no frames]

# Class TestProp2PO

source code

Known Subclasses:
  - TestProp2POCommand

Instance Methods | [hide private]

prop2po(self, propsource, proptemplate=None) helper that converts .properties source to po source without requiring files | source code

convertprop(self, propsource) call the convertprop, return the outputfile | source code

singleelement(self, pofile) checks that the pofile contains a single non-header element, and returns it | source code

countelements(self, pofile) counts the number of non-header entries | source code

test_simpleentry(self) checks that a simple properties entry converts properly to a po entry | source code

test_convertprop(self) checks that the convertprop function is working | source code

test_tab_at_end_of_string(self) check that we preserve tabs at the end of a string | source code

test_tab_at_start_of_value(self) check that tabs in a property are ignored where appropriate | source code

test_unicode(self) checks that unicode entries convert properly | source code

test_multiline_escaping(self) checks that multiline enties can be parsed | source code

test_comments(self) test to ensure that we take comments from .properties and place them in .po | source code

wtest_folding_accesskeys(self) check that we can fold various accesskeys into their associated label (bug #115) | source code

test_dont_translate(self) check that we know how to ignore don't translate instructions in properties files (bug #116) | source code

test_emptyproperty(self) checks that empty property definitions survive into po file, bug 15 | source code

test_emptyproperty_translated(self) checks that if we translate an empty property it makes it into the PO | source code

test_newlines_in_value(self) check that we can carry newlines that appear in the property value into the PO | source code

test_unassociated_comments(self) check that we can handle comments not directly associated with a property | source code

test_unassociated_comment_order(self) check that we can handle the order of unassociated comments | source code