Part of lp.archiveuploader.tests.test_tagfiles View In Hierarchy
| 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 |
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.
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
See http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description