Permalink
Browse files

Using a standard if statement.

  • Loading branch information...
1 parent 279a66e commit 323f06616f85bb0cfa4aead3143f55a5115348fb @danielfm committed Feb 13, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/djangoflash/tests/testproj/app/tests.py
@@ -40,7 +40,10 @@ def test_value_in_template(self):
"""Integration: a value should be accessible by the templating system.
"""
def _assert_content(content, exists=True):
- matcher = self.assertTrue if exists else self.assertFalse
+ if exists:
+ matcher = self.assertTrue
+ else:
+ matcher = self.assertFalse
matcher(self.response.content.find(content) > 0)
self.response = self.client.get(reverse(views.set_flash_var))

0 comments on commit 323f066

Please sign in to comment.