Skip to content

Commit

Permalink
Minor tweak to tempatetag tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoa committed Jul 14, 2012
1 parent 64936c8 commit 8f202fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions categories/tests/templatetags.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ def testBasicUsage(self):
# display_drilldown_as_ul
expected_resp = u'<ul><li><a href="/categories/">Top</a><ul><li><a href="/categories/world/">World</a><ul><li><strong>Worldbeat</strong><ul><li><a href="/categories/world/worldbeat/afrobeat/">Afrobeat</a></li></ul></li></ul></li></ul></li></ul>'
resp = self.render_template('{% load category_tags %}'
'{% display_drilldown_as_ul "/World/Worldbeat" using="categories.category" %}')
'{% display_drilldown_as_ul "/World/Worldbeat" "categories.category" %}')
self.assertEqual(resp, expected_resp)

# breadcrumbs
expected_resp = u'<a href="/categories/world/">World</a> &gt; Worldbeat'
resp = self.render_template('{% load category_tags %}'
'{% breadcrumbs "/World/Worldbeat" using="categories.category" %}')
'{% breadcrumbs "/World/Worldbeat" " &gt; " "categories.category" %}')
self.assertEqual(resp, expected_resp)

# get_top_level_categories
Expand Down

0 comments on commit 8f202fa

Please sign in to comment.