diff mbox series

[b4,v2,1/6] src/tests: check trailer extinfo

Message ID 20241027-trailer-special-chars-v2-1-e963f78b3ef8@gmail.com (mailing list archive)
State New
Headers show
Series Handle patch trailers with special characters | expand

Commit Message

Brandon Maier Oct. 27, 2024, 10:34 p.m. UTC
The b4.LoreTrailer.__eq__ ignores the 'extinfo' of a trailer. So the
trailer test is not checking that extinfo is parsed correctly.

Signed-off-by: Brandon Maier <brandon.maier@gmail.com>
---
 src/tests/test___init__.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/src/tests/test___init__.py b/src/tests/test___init__.py
index 297e5120a8c8adf241660f06e9a83c1ff4a0fd3a..dbc92c7e8352728c2f2a951f7b9b1496ccbaf2c5 100644
--- a/src/tests/test___init__.py
+++ b/src/tests/test___init__.py
@@ -79,6 +79,7 @@  def test_parse_trailers(sampledir, source, expected):
             mytype, myname, myvalue, myextinfo = expected.pop(0)
             mytr = b4.LoreTrailer(name=myname, value=myvalue, extinfo=myextinfo)
             assert tr == mytr
+            assert tr.extinfo == mytr.extinfo
             assert tr.type == mytype