diff options
| author | Alasdair Nicol <alasdair@memset.com> | 2013-10-17 23:27:45 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-17 20:20:11 -0400 |
| commit | dfb4cb9970f86487f0aaa88c5dfcfafa31e4f430 (patch) | |
| tree | 4762099924f11873e9b6608e6f056939f16410b9 /tests/template_tests | |
| parent | d97bec5ee3a6284d30b613c9070588a60358e7ec (diff) | |
Fixed #21285 -- Fixed E121,E122 pep8 warnings
Diffstat (limited to 'tests/template_tests')
| -rw-r--r-- | tests/template_tests/filters.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/template_tests/filters.py b/tests/template_tests/filters.py index 3addec24a7..2845bc9ff6 100644 --- a/tests/template_tests/filters.py +++ b/tests/template_tests/filters.py @@ -371,12 +371,12 @@ def get_filter_tests(): 'time05': (r'{{ d|time:"P:e:O:T:Z" }}', {'d': today}, ''), 'time06': (r'{{ obj|time:"P:e:O:T:Z" }}', {'obj': 'non-datetime-value'}, ''), - # Tests for #11687 and #16676 - 'add01': (r'{{ i|add:"5" }}', {'i': 2000}, '2005'), - 'add02': (r'{{ i|add:"napis" }}', {'i': 2000}, ''), - 'add03': (r'{{ i|add:16 }}', {'i': 'not_an_int'}, ''), - 'add04': (r'{{ i|add:"16" }}', {'i': 'not_an_int'}, 'not_an_int16'), - 'add05': (r'{{ l1|add:l2 }}', {'l1': [1, 2], 'l2': [3, 4]}, '[1, 2, 3, 4]'), - 'add06': (r'{{ t1|add:t2 }}', {'t1': (3, 4), 't2': (1, 2)}, '(3, 4, 1, 2)'), - 'add07': (r'{{ d|add:t }}', {'d': date(2000, 1, 1), 't': timedelta(10)}, 'Jan. 11, 2000'), + # Tests for #11687 and #16676 + 'add01': (r'{{ i|add:"5" }}', {'i': 2000}, '2005'), + 'add02': (r'{{ i|add:"napis" }}', {'i': 2000}, ''), + 'add03': (r'{{ i|add:16 }}', {'i': 'not_an_int'}, ''), + 'add04': (r'{{ i|add:"16" }}', {'i': 'not_an_int'}, 'not_an_int16'), + 'add05': (r'{{ l1|add:l2 }}', {'l1': [1, 2], 'l2': [3, 4]}, '[1, 2, 3, 4]'), + 'add06': (r'{{ t1|add:t2 }}', {'t1': (3, 4), 't2': (1, 2)}, '(3, 4, 1, 2)'), + 'add07': (r'{{ d|add:t }}', {'d': date(2000, 1, 1), 't': timedelta(10)}, 'Jan. 11, 2000'), } |
