fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix stupid bug on save
[redakcja.git]
/
apps
/
catalogue
/
tests
/
xml_updater.py
diff --git
a/apps/catalogue/tests/xml_updater.py
b/apps/catalogue/tests/xml_updater.py
index
9fb5a4a
..
2db8d80
100644
(file)
--- 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):
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):
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.assertEqual(
Book.objects.get(slug='test-book').wldocument(
publishable=False).book_info.title,
- self.title + " fixed"
- )
+ self.title + " fixed")