X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0f7ebe49c20394d80afb129b29e4afa411347441..042196842c177084eb717ed6191e1b3d5d3ef82e:/apps/catalogue/tests/xml_updater.py diff --git a/apps/catalogue/tests/xml_updater.py b/apps/catalogue/tests/xml_updater.py index 9fb5a4a0..2db8d80f 100644 --- a/apps/catalogue/tests/xml_updater.py +++ b/apps/catalogue/tests/xml_updater.py @@ -17,7 +17,7 @@ class XmlUpdaterTests(TestCase): class SimpleUpdater(XmlUpdater): @XmlUpdater.fixes_elements('.//' + DCNS('title')) def fix_title(element, **kwargs): - element.text = element.text + " fixed" + element.text += " fixed" return True def setUp(self): @@ -31,5 +31,4 @@ class XmlUpdaterTests(TestCase): self.assertEqual( Book.objects.get(slug='test-book').wldocument( publishable=False).book_info.title, - self.title + " fixed" - ) + self.title + " fixed")