mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed E127 pep8 warnings.
This commit is contained in:
parent
d599b590eb
commit
6685713869
55 changed files with 362 additions and 338 deletions
|
@ -859,14 +859,16 @@ class TemplateTests(TestCase):
|
|||
"""
|
||||
Test the {% timezone %} templatetag.
|
||||
"""
|
||||
tpl = Template("{% load tz %}"
|
||||
"{{ dt }}|"
|
||||
"{% timezone tz1 %}"
|
||||
"{{ dt }}|"
|
||||
"{% timezone tz2 %}"
|
||||
"{{ dt }}"
|
||||
"{% endtimezone %}"
|
||||
"{% endtimezone %}")
|
||||
tpl = Template(
|
||||
"{% load tz %}"
|
||||
"{{ dt }}|"
|
||||
"{% timezone tz1 %}"
|
||||
"{{ dt }}|"
|
||||
"{% timezone tz2 %}"
|
||||
"{{ dt }}"
|
||||
"{% endtimezone %}"
|
||||
"{% endtimezone %}"
|
||||
)
|
||||
ctx = Context({'dt': datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC),
|
||||
'tz1': ICT, 'tz2': None})
|
||||
self.assertEqual(tpl.render(ctx), "2011-09-01T13:20:30+03:00|2011-09-01T17:20:30+07:00|2011-09-01T13:20:30+03:00")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue