l.t.u.t.t.POBasicTestCase(unittest.TestCase) : class documentation

Part of lp.translations.utilities.tests.test_gettext_po_parser View In Hierarchy

No class docstring
Method setUp Undocumented
Method testEmptyFile Undocumented
Method testEmptyFileError Undocumented
Method testContentlessFile Undocumented
Method testSingular Undocumented
Method testNoNewLine Undocumented
Method testMissingQuote Undocumented
Method testBadNewline Undocumented
Method testBadBackslash Undocumented
Method testMissingMsgstr Undocumented
Method testMissingMsgid1 Undocumented
Method testFuzzy Undocumented
Method testComment Undocumented
Method testEscape Undocumented
Method testPlural Undocumented
Method testNonnumericPluralCase Undocumented
Method testNegativePluralCase Undocumented
Method testUnsupportedPluralCase Undocumented
Method testObsolete Undocumented
Method testObsoleteChangedMsgid Undocumented
Method testMultiLineObsolete Undocumented
Method testDuplicateMsgid Undocumented
Method testRedundantMsgstr Undocumented
Method testRedundantPlural Undocumented
Method testSquareBracketAndPlural Undocumented
Method testDoubleHeader Undocumented
Method testUpdateHeader Undocumented
Method testEscapedNewline Test escaped newline.
Method testMultipartString Test concatenated message strings on the same line.
Method testGetLastTranslator Tests whether we extract last translator information correctly.
def setUp(self):
Undocumented
def testEmptyFile(self):
Undocumented
def testEmptyFileError(self):
Undocumented
def testContentlessFile(self):
Undocumented
def testSingular(self):
Undocumented
def testNoNewLine(self):
Undocumented
def testMissingQuote(self):
Undocumented
def testBadNewline(self):
Undocumented
def testBadBackslash(self):
Undocumented
def testMissingMsgstr(self):
Undocumented
def testMissingMsgid1(self):
Undocumented
def testFuzzy(self):
Undocumented
def testComment(self):
Undocumented
def testEscape(self):
Undocumented
def testPlural(self):
Undocumented
def testNonnumericPluralCase(self):
Undocumented
def testNegativePluralCase(self):
Undocumented
def testUnsupportedPluralCase(self):
Undocumented
def testObsolete(self):
Undocumented
def testObsoleteChangedMsgid(self):
Undocumented
def testMultiLineObsolete(self):
Undocumented
def testDuplicateMsgid(self):
Undocumented
def testRedundantMsgstr(self):
Undocumented
def testRedundantPlural(self):
Undocumented
def testSquareBracketAndPlural(self):
Undocumented
def testDoubleHeader(self):
Undocumented
def testUpdateHeader(self):
Undocumented
def testEscapedNewline(self):
Test escaped newline.
def testMultipartString(self):
Test concatenated message strings on the same line.

There seems to be nothing in the PO file format that forbids closing a string and re-opening it on the same line. One wouldn't normally want to make use of this, but in bug #49599 two lines in a message had been accidentally concatenated at column 80, possibly because the author's editor happened to break the line there and the missing line feed became unnoticeable.

Make sure this works. The strings should be concatenated. If there is any whitespace between the lines, it should be ignored. This is how the ability to close and re-open strings is normally used: to break up long strings into multiple lines in the PO file.

def testGetLastTranslator(self):
Tests whether we extract last translator information correctly.
API Documentation for Launchpad, generated by pydoctor at 2020-01-26 00:00:27.