|
5 | 5 |
|
6 | 6 | import textwrap |
7 | 7 |
|
8 | | -from .plugin_test import DjangoPluginTestCase, django_stop_before, squashed |
| 8 | +from .plugin_test import DjangoPluginTestCase, squashed |
9 | 9 |
|
10 | 10 |
|
11 | 11 | class IfTest(DjangoPluginTestCase): |
@@ -207,39 +207,3 @@ def test_ifchanged_variable(self): |
207 | 207 | }) |
208 | 208 | self.assertEqual(squashed(text), 'AXYBZW') |
209 | 209 | self.assert_analysis([1, 2, 3, 5]) |
210 | | - |
211 | | - |
212 | | -@django_stop_before(4, 0) |
213 | | -class IfEqualTest(DjangoPluginTestCase): |
214 | | - |
215 | | - def test_ifequal(self): |
216 | | - self.make_template("""\ |
217 | | - {% for i,x in items %} |
218 | | - {% ifequal x "X" %} |
219 | | - X |
220 | | - {% endifequal %} |
221 | | - {{ i }} |
222 | | - {% endfor %} |
223 | | - """) |
224 | | - |
225 | | - text = self.run_django_coverage(context={ |
226 | | - 'items': [(0, 'A'), (1, 'X'), (2, 'X'), (3, 'B')], |
227 | | - }) |
228 | | - self.assertEqual(squashed(text), '0X1X23') |
229 | | - self.assert_analysis([1, 2, 3, 5]) |
230 | | - |
231 | | - def test_ifnotequal(self): |
232 | | - self.make_template("""\ |
233 | | - {% for i,x in items %} |
234 | | - {% ifnotequal x "X" %} |
235 | | - X |
236 | | - {% endifnotequal %} |
237 | | - {{ i }} |
238 | | - {% endfor %} |
239 | | - """) |
240 | | - |
241 | | - text = self.run_django_coverage(context={ |
242 | | - 'items': [(0, 'A'), (1, 'X'), (2, 'X'), (3, 'B')], |
243 | | - }) |
244 | | - self.assertEqual(squashed(text), 'X012X3') |
245 | | - self.assert_analysis([1, 2, 3, 5]) |
0 commit comments