Package translate :: Package convert :: Module test_po2csv :: Class TestPO2CSV

[hide private]
[frames] | no frames]

# Class TestPO2CSV

source code

Known Subclasses:
  - TestPO2CSVCommand

Instance Methods | [hide private]

po2csv(self, posource) helper that converts po source to csv source without requiring files | source code

csv2po(self, csvsource, template=None) helper that converts csv source to po source without requiring files | source code

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

test_simpleentity(self) checks that a simple csv entry definition converts properly to a po entry | source code

test_multiline(self) tests multiline po entries | source code

test_escapednewlines(self) Test the escaping of newlines | source code

test_escapedtabs(self) Test the escaping of tabs | source code

test_escapedquotes(self) Test the escaping of quotes (and slash) | source code

test_escapedescape(self) Test the escaping of pure escapes is unaffected | source code

test_singlequotes(self) Tests that single quotes are preserved correctly | source code

test_empties(self) Tests that things keep working with empty entries | source code

test_kdecomments(self) test that we don't carry KDE comments to CSV | source code