From 018aa8526c470086b2e10c3eb81ccfcc3525071d Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 30 Dec 2015 16:39:48 +0200 Subject: [PATCH] Add a test for header_comment updating. --- tests/messages/test_catalog.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/messages/test_catalog.py b/tests/messages/test_catalog.py index 31bb1d14..7d18d80a 100644 --- a/tests/messages/test_catalog.py +++ b/tests/messages/test_catalog.py @@ -428,7 +428,7 @@ def test_catalog_add(): def test_catalog_update(): - template = catalog.Catalog() + template = catalog.Catalog(header_comment="# A Custom Header") template.add('green', locations=[('main.py', 99)]) template.add('blue', locations=[('main.py', 100)]) template.add(('salad', 'salads'), locations=[('util.py', 42)]) @@ -440,6 +440,7 @@ def test_catalog_update(): cat.update(template) assert len(cat) == 3 + assert cat.header_comment == template.header_comment # Header comment also gets updated msg1 = cat['green'] msg1.string -- 2.47.2