summaryrefslogtreecommitdiff
path: root/tests/template_tests
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@memset.com>2013-10-18 00:58:02 +0100
committerAlasdair Nicol <alasdair@memset.com>2013-10-18 01:46:24 +0100
commitbab9123daa5d05150951f74183906a76d2b0cf27 (patch)
tree4fc24535f85f84c69e64c6eac654294725d906df /tests/template_tests
parent65d1d65d52a87bba22845bcb7c3c921a8789ec19 (diff)
Fixed #21268 -- Fixed E303 pep8 warnings
Diffstat (limited to 'tests/template_tests')
-rw-r--r--tests/template_tests/test_response.py1
-rw-r--r--tests/template_tests/tests.py3
2 files changed, 1 insertions, 3 deletions
diff --git a/tests/template_tests/test_response.py b/tests/template_tests/test_response.py
index 65f7531361..fe58a58d6d 100644
--- a/tests/template_tests/test_response.py
+++ b/tests/template_tests/test_response.py
@@ -146,7 +146,6 @@ class SimpleTemplateResponseTest(TestCase):
self.assertEqual(response.content, b'First template\n')
self.assertEqual(post, ['post1','post2'])
-
def test_pickling(self):
# Create a template response. The context is
# known to be unpickleable (e.g., a function).
diff --git a/tests/template_tests/tests.py b/tests/template_tests/tests.py
index 353d99ee83..4139402506 100644
--- a/tests/template_tests/tests.py
+++ b/tests/template_tests/tests.py
@@ -283,7 +283,6 @@ class TemplateLoaderTests(TestCase):
loader.template_source_loaders = old_loaders
settings.TEMPLATE_DEBUG = old_td
-
def test_extends_include_missing_baseloader(self):
"""
Tests that the correct template is identified as not existing
@@ -1821,9 +1820,9 @@ class TemplateTests(TransRealMixin, TestCase):
'numpy-array-index02': ("{{ var.5 }}", {"var": numpy.array(["first item", "second item"])}, ("", "INVALID")),
})
-
return tests
+
class TemplateTagLoading(unittest.TestCase):
def setUp(self):