Skip to content

Commit

Permalink
Modified the tests to make sure everything works as expected on block
Browse files Browse the repository at this point in the history
tags such as {% if %}...{% endif %} too. #14
  • Loading branch information
flashingpumpkin committed Mar 12, 2012
1 parent 72fa015 commit bb6844b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion follow/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_template_tags(self):

self.assertEqual(utils.follow_url(self.hendrix, self.lennon), tpl.render(ctx2))

tpl = template.Template("""{% load follow_tags %}{{ request.user|is_following:obj }}""")
tpl = template.Template("""{% load follow_tags %}{% if request.user|is_following:obj %}True{% else %}False{% endif %}""")

self.assertEqual("False", tpl.render(ctx))

Expand Down

0 comments on commit bb6844b

Please sign in to comment.