| 869 | | 'now02' : ('{% now "j "n" Y"%}', {}, template.TemplateSyntaxError), |
|---|
| 870 | | # 'now03' : ('{% now "j \"n\" Y"%}', {}, str(datetime.now().day) + '"' + str(datetime.now().month) + '"' + str(datetime.now().year)), |
|---|
| 871 | | # 'now04' : ('{% now "j \nn\n Y"%}', {}, str(datetime.now().day) + '\n' + str(datetime.now().month) + '\n' + str(datetime.now().year)) |
|---|
| | 869 | 'now02': ('{% now "j "n" Y"%}', {}, template.TemplateSyntaxError), |
|---|
| | 870 | # 'now03': ('{% now "j \"n\" Y"%}', {}, str(datetime.now().day) + '"' + str(datetime.now().month) + '"' + str(datetime.now().year)), |
|---|
| | 871 | # 'now04': ('{% now "j \nn\n Y"%}', {}, str(datetime.now().day) + '\n' + str(datetime.now().month) + '\n' + str(datetime.now().year)) |
|---|
| 875 | | 'url01' : ('{% url regressiontests.templates.views.client client.id %}', {'client': {'id': 1}}, '/url_tag/client/1/'), |
|---|
| 876 | | 'url02' : ('{% url regressiontests.templates.views.client_action client.id, action="update" %}', {'client': {'id': 1}}, '/url_tag/client/1/update/'), |
|---|
| 877 | | 'url03' : ('{% url regressiontests.templates.views.index %}', {}, '/url_tag/'), |
|---|
| 878 | | 'url04' : ('{% url named.client client.id %}', {'client': {'id': 1}}, '/url_tag/named-client/1/'), |
|---|
| 879 | | 'url05' : (u'{% url метка_оператора v %}', {'v': u'Ω'}, |
|---|
| 880 | | '/url_tag/%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4/%CE%A9/'), |
|---|
| | 875 | 'url01': ('{% url regressiontests.templates.views.client client.id %}', {'client': {'id': 1}}, '/url_tag/client/1/'), |
|---|
| | 876 | 'url02': ('{% url regressiontests.templates.views.client_action client.id, action="update" %}', {'client': {'id': 1}}, '/url_tag/client/1/update/'), |
|---|
| | 877 | 'url03': ('{% url regressiontests.templates.views.index %}', {}, '/url_tag/'), |
|---|
| | 878 | 'url04': ('{% url named.client client.id %}', {'client': {'id': 1}}, '/url_tag/named-client/1/'), |
|---|
| | 879 | 'url05': (u'{% url метка_оператора v %}', {'v': u'Ω'}, '/url_tag/%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4/%CE%A9/'), |
|---|
| 883 | | 'url-fail01' : ('{% url %}', {}, template.TemplateSyntaxError), |
|---|
| 884 | | 'url-fail02' : ('{% url no_such_view %}', {}, ''), |
|---|
| 885 | | 'url-fail03' : ('{% url regressiontests.templates.views.client no_such_param="value" %}', {}, ''), |
|---|
| | 882 | 'url-fail01': ('{% url %}', {}, template.TemplateSyntaxError), |
|---|
| | 883 | 'url-fail02': ('{% url no_such_view %}', {}, ''), |
|---|
| | 884 | 'url-fail03': ('{% url regressiontests.templates.views.client no_such_param="value" %}', {}, ''), |
|---|
| 888 | | 'cache01' : ('{% load cache %}{% cache -1 test %}cache01{% endcache %}', {}, 'cache01'), |
|---|
| 889 | | 'cache02' : ('{% load cache %}{% cache -1 test %}cache02{% endcache %}', {}, 'cache02'), |
|---|
| 890 | | 'cache03' : ('{% load cache %}{% cache 2 test %}cache03{% endcache %}', {}, 'cache03'), |
|---|
| 891 | | 'cache04' : ('{% load cache %}{% cache 2 test %}cache04{% endcache %}', {}, 'cache03'), |
|---|
| 892 | | 'cache05' : ('{% load cache %}{% cache 2 test foo %}cache05{% endcache %}', {'foo': 1}, 'cache05'), |
|---|
| 893 | | 'cache06' : ('{% load cache %}{% cache 2 test foo %}cache06{% endcache %}', {'foo': 2}, 'cache06'), |
|---|
| 894 | | 'cache07' : ('{% load cache %}{% cache 2 test foo %}cache06{% endcache %}', {'foo': 1}, 'cache05'), |
|---|
| | 887 | 'cache01': ('{% load cache %}{% cache -1 test %}cache01{% endcache %}', {}, 'cache01'), |
|---|
| | 888 | 'cache02': ('{% load cache %}{% cache -1 test %}cache02{% endcache %}', {}, 'cache02'), |
|---|
| | 889 | 'cache03': ('{% load cache %}{% cache 2 test %}cache03{% endcache %}', {}, 'cache03'), |
|---|
| | 890 | 'cache04': ('{% load cache %}{% cache 2 test %}cache04{% endcache %}', {}, 'cache03'), |
|---|
| | 891 | 'cache05': ('{% load cache %}{% cache 2 test foo %}cache05{% endcache %}', {'foo': 1}, 'cache05'), |
|---|
| | 892 | 'cache06': ('{% load cache %}{% cache 2 test foo %}cache06{% endcache %}', {'foo': 2}, 'cache06'), |
|---|
| | 893 | 'cache07': ('{% load cache %}{% cache 2 test foo %}cache07{% endcache %}', {'foo': 1}, 'cache05'), |
|---|
| | 894 | |
|---|
| | 895 | # Allow first argument to be a variable. |
|---|
| | 896 | 'cache08': ('{% load cache %}{% cache time test foo %}cache08{% endcache %}', {'foo': 2, 'time': 2}, 'cache06'), |
|---|
| | 897 | 'cache09': ('{% load cache %}{% cache time test foo %}cache09{% endcache %}', {'foo': 3, 'time': -1}, 'cache09'), |
|---|
| | 898 | 'cache10': ('{% load cache %}{% cache time test foo %}cache10{% endcache %}', {'foo': 3, 'time': -1}, 'cache10'), |
|---|
| 897 | | 'cache08' : ('{% load cache %}{% cache %}{% endcache %}', {}, template.TemplateSyntaxError), |
|---|
| 898 | | 'cache09' : ('{% load cache %}{% cache 1 %}{% endcache %}', {}, template.TemplateSyntaxError), |
|---|
| 899 | | 'cache10' : ('{% load cache %}{% cache foo bar %}{% endcache %}', {}, template.TemplateSyntaxError), |
|---|
| | 901 | 'cache11': ('{% load cache %}{% cache %}{% endcache %}', {}, template.TemplateSyntaxError), |
|---|
| | 902 | 'cache12': ('{% load cache %}{% cache 1 %}{% endcache %}', {}, template.TemplateSyntaxError), |
|---|
| | 903 | 'cache13': ('{% load cache %}{% cache foo bar %}{% endcache %}', {}, template.TemplateSyntaxError), |
|---|
| | 904 | 'cache14': ('{% load cache %}{% cache foo bar %}{% endcache %}', {'foo': 'fail'}, template.TemplateSyntaxError), |
|---|
| | 905 | 'cache15': ('{% load cache %}{% cache foo bar %}{% endcache %}', {'foo': []}, template.TemplateSyntaxError), |
|---|