mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Moved test_token_smart_split into ParserTests.
This commit is contained in:
parent
3d8fee6051
commit
25a0b5cdcd
2 changed files with 11 additions and 9 deletions
|
@ -7,8 +7,7 @@ import sys
|
|||
from django.contrib.auth.models import Group
|
||||
from django.core import urlresolvers
|
||||
from django.template import (
|
||||
Context, Template, TemplateSyntaxError, base as template_base, engines,
|
||||
loader,
|
||||
Context, Template, TemplateSyntaxError, engines, loader,
|
||||
)
|
||||
from django.test import SimpleTestCase, override_settings
|
||||
from django.utils._os import upath
|
||||
|
@ -26,12 +25,6 @@ class TemplateTests(SimpleTestCase):
|
|||
|
||||
class TemplateRegressionTests(SimpleTestCase):
|
||||
|
||||
def test_token_smart_split(self):
|
||||
# Regression test for #7027
|
||||
token = template_base.Token(template_base.TOKEN_BLOCK, 'sometag _("Page not found") value|yesno:_("yes,no")')
|
||||
split = token.split_contents()
|
||||
self.assertEqual(split, ["sometag", '_("Page not found")', 'value|yesno:_("yes,no")'])
|
||||
|
||||
@override_settings(SETTINGS_MODULE=None, DEBUG=True)
|
||||
def test_url_reverse_no_settings_module(self):
|
||||
# Regression test for #9005
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue