l.a.t.t.TestTagFileDebianPolicyCompat(unittest.TestCase) : class documentation

Part of lp.archiveuploader.tests.test_tagfiles View In Hierarchy

No class docstring
Method setUp Parse the test file using apt_pkg for comparison.
Method test_parse_tagfile_with_multiline_values parse_tagfile should not leave trailing '
Method test_parse_tagfile_with_newline_delimited_field parse_tagfile should not leave leading or tailing '
Method test_parse_description_field Apt-pkg preserves the blank-line indicator and does not strip
def setUp(self):
Parse the test file using apt_pkg for comparison.
def test_parse_tagfile_with_multiline_values(self):
parse_tagfile should not leave trailing '
' on multiline values.

        This is a regression test for bug 436182.
        Previously we,
          1. Stripped leading space/tab from subsequent lines of multiline
             values, and
          2. appended a trailing '
' to the end of the value.
        
def test_parse_tagfile_with_newline_delimited_field(self):
parse_tagfile should not leave leading or tailing '
' when
        parsing newline delimited fields.

        Newline-delimited fields should be parsed to match apt_pkg.TagFile.

        Note: in the past, our parse_tagfile function left the leading
        '
' in the parsed value, whereas it should not have.

        For an example,
        see http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Files
        
def test_parse_description_field(self):
Apt-pkg preserves the blank-line indicator and does not strip leading spaces.

See http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.