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

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

Test class for property file format.
Method test_UTF8PropertyFileTest This test makes sure that we handle UTF-8 encoding files.
Method test_UnicodeEscapedPropertyFileTest This test makes sure that we handle unicode escaped files.
Method test_InvalidPropertyFileUnicodeEscape Undocumented
Method test_Latin1PropertyFileTest This test makes sure that we detect bad encodings.
Method test_TrailingBackslashPropertyFileTest Test whether trailing backslashes are well handled.
Method test_EscapedQuotesPropertyFileTest Test whether escaped quotes are well handled.
Method test_WholeLineCommentPropertyFileTest Test whether whole line comments are well handled.
Method test_EndOfLineCommentPropertyFileTest Test whether end of line comments are well handled.
Method test_MultiLineCommentPropertyFileTest Test whether multiline comments are well handled.
Method test_URLNotComment Double slash in a URL is not treated as end-of-line comment.
Method test_InvalidLinePropertyFileTest Test whether an invalid line is ignored.
Method test_MultilinePropertyFileTest Test parsing of multiline entries.
Method test_WhiteSpaceBeforeComment Test that single line comment is detected even with white space.
Method _baseContentEncodingTest This is a base function to check different encodings.
def _baseContentEncodingTest(self, content):
This is a base function to check different encodings.
def test_UTF8PropertyFileTest(self):
This test makes sure that we handle UTF-8 encoding files.
def test_UnicodeEscapedPropertyFileTest(self):
This test makes sure that we handle unicode escaped files.
def test_InvalidPropertyFileUnicodeEscape(self):
Undocumented
def test_Latin1PropertyFileTest(self):
This test makes sure that we detect bad encodings.
def test_TrailingBackslashPropertyFileTest(self):
Test whether trailing backslashes are well handled.

A trailing backslash as last char in the line continue the string in the following document line.

def test_EscapedQuotesPropertyFileTest(self):
Test whether escaped quotes are well handled.

Escaped quotes must be stored unescaped.

def test_WholeLineCommentPropertyFileTest(self):
Test whether whole line comments are well handled.
def test_EndOfLineCommentPropertyFileTest(self):
Test whether end of line comments are well handled.
def test_MultiLineCommentPropertyFileTest(self):
Test whether multiline comments are well handled.
def test_URLNotComment(self):
Double slash in a URL is not treated as end-of-line comment.
def test_InvalidLinePropertyFileTest(self):
Test whether an invalid line is ignored.
def test_MultilinePropertyFileTest(self):
Test parsing of multiline entries.
def test_WhiteSpaceBeforeComment(self):
Test that single line comment is detected even with white space.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.