diff options
| author | Jason Myers <jason@jasonamyers.com> | 2013-11-02 16:34:05 -0500 |
|---|---|---|
| committer | Jason Myers <jason@jasonamyers.com> | 2013-11-02 23:48:47 -0500 |
| commit | c3791463a5a9674f8e0148fbab57eae23c138896 (patch) | |
| tree | 6606acdb74132a344a49e910dec5d0356389a569 /tests/template_tests/test_loaders.py | |
| parent | 2a03a9a9a1c4517be75e72899e545b0bc9dd0688 (diff) | |
Fixing E302 Errors
Signed-off-by: Jason Myers <jason@jasonamyers.com>
Diffstat (limited to 'tests/template_tests/test_loaders.py')
| -rw-r--r-- | tests/template_tests/test_loaders.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/template_tests/test_loaders.py b/tests/template_tests/test_loaders.py index 1eef3942a6..57da0af56e 100644 --- a/tests/template_tests/test_loaders.py +++ b/tests/template_tests/test_loaders.py @@ -34,6 +34,7 @@ from django.utils.six import StringIO class MockLoader(object): pass + def create_egg(name, resources): """ Creates a mock egg with a list of resources. @@ -105,7 +106,7 @@ class EggLoaderTest(TestCase): @override_settings( - TEMPLATE_LOADERS = ( + TEMPLATE_LOADERS=( ('django.template.loaders.cached.Loader', ( 'django.template.loaders.filesystem.Loader', )), @@ -139,7 +140,7 @@ class CachedLoader(TestCase): @override_settings( - TEMPLATE_DIRS = ( + TEMPLATE_DIRS=( os.path.join(os.path.dirname(upath(__file__)), 'templates'), ) ) @@ -160,13 +161,13 @@ class RenderToStringTest(TestCase): def test_empty_list(self): six.assertRaisesRegex(self, TemplateDoesNotExist, - 'No template names provided$', - loader.render_to_string, []) + 'No template names provided$', + loader.render_to_string, []) def test_select_templates_from_empty_list(self): six.assertRaisesRegex(self, TemplateDoesNotExist, - 'No template names provided$', - loader.select_template, []) + 'No template names provided$', + loader.select_template, []) class TemplateDirsOverrideTest(unittest.TestCase): |
