fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minimal allauth support
[wolnelektury.git]
/
apps
/
catalogue
/
tests
/
templatetags.py
diff --git
a/apps/catalogue/tests/templatetags.py
b/apps/catalogue/tests/templatetags.py
index
5b1283c
..
7a2ac36
100644
(file)
--- a/
apps/catalogue/tests/templatetags.py
+++ b/
apps/catalogue/tests/templatetags.py
@@
-10,11
+10,11
@@
class BookDescTests(WLTestCase):
def setUp(self):
WLTestCase.setUp(self)
def setUp(self):
WLTestCase.setUp(self)
- author
= PersonStub(("Common",), "Man
")
+ author
s = PersonStub(("Common",), "Man"), PersonStub(("Jane",), "Doe
")
- child_info = BookInfoStub(author
=author
, genre="Genre", epoch='Epoch', kind="Kind",
+ child_info = BookInfoStub(author
s=authors
, genre="Genre", epoch='Epoch', kind="Kind",
**info_args(u"Child"))
**info_args(u"Child"))
- parent_info = BookInfoStub(author
=author
, genre="Genre", epoch='Epoch', kind="Kind",
+ parent_info = BookInfoStub(author
s=authors
, genre="Genre", epoch='Epoch', kind="Kind",
parts=[child_info.url],
**info_args(u"Parent"))
parts=[child_info.url],
**info_args(u"Parent"))
@@
-24,4
+24,4
@@
class BookDescTests(WLTestCase):
def test_book_desc(self):
""" book description should return authors, ancestors, book """
def test_book_desc(self):
""" book description should return authors, ancestors, book """
- self.assertEqual(catalogue_tags.book_title(self.child), 'Common Man, Parent, Child')
+ self.assertEqual(catalogue_tags.book_title(self.child), '
Jane Doe,
Common Man, Parent, Child')