Browse Source

Simplified test conditions

Rafał Pitoń 11 years ago
parent
commit
fb9857c6b2
1 changed files with 3 additions and 6 deletions
  1. 3 6
      misago/core/tests/test_templatetags.py

+ 3 - 6
misago/core/tests/test_templatetags.py

@@ -99,8 +99,7 @@ class FormRowTests(TestCase):
 """
 """
 
 
         with self.assertRaises(TemplateSyntaxError):
         with self.assertRaises(TemplateSyntaxError):
-            tpl = Template(tpl_content)
-            render = tpl.render(self.context).strip()
+            Template(tpl_content)
 
 
     def test_form_row_with_two_args(self):
     def test_form_row_with_two_args(self):
         """form_row with two args raises exception"""
         """form_row with two args raises exception"""
@@ -111,8 +110,7 @@ class FormRowTests(TestCase):
 """
 """
 
 
         with self.assertRaises(TemplateSyntaxError):
         with self.assertRaises(TemplateSyntaxError):
-            tpl = Template(tpl_content)
-            render = tpl.render(self.context).strip()
+            Template(tpl_content)
 
 
     def test_form_row_with_four_args(self):
     def test_form_row_with_four_args(self):
         """form_row with four args raises exception"""
         """form_row with four args raises exception"""
@@ -123,5 +121,4 @@ class FormRowTests(TestCase):
 """
 """
 
 
         with self.assertRaises(TemplateSyntaxError):
         with self.assertRaises(TemplateSyntaxError):
-            tpl = Template(tpl_content)
-            render = tpl.render(self.context).strip()
+            Template(tpl_content)