diff options
| author | Tim Graham <timograham@gmail.com> | 2014-08-12 20:16:04 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-08-12 20:16:04 -0400 |
| commit | d38a00332ed012b889cce00d8ea51da728023ead (patch) | |
| tree | 5231d3cccfe4220804b21f14dacc5b69777dc6d2 /tests/template_tests | |
| parent | 68686430638215b5405b20bd767c0be392c9221d (diff) | |
Updated tests for added newlines in 68686430638215b5405b20bd767c0be392c9221d.
Diffstat (limited to 'tests/template_tests')
| -rw-r--r-- | tests/template_tests/test_loaders.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/template_tests/test_loaders.py b/tests/template_tests/test_loaders.py index d2227878f0..e83b8060b1 100644 --- a/tests/template_tests/test_loaders.py +++ b/tests/template_tests/test_loaders.py @@ -148,17 +148,17 @@ class CachedLoader(TestCase): ) class RenderToStringTest(TestCase): def test_basic(self): - self.assertEqual(loader.render_to_string('test_context.html'), 'obj:') + self.assertEqual(loader.render_to_string('test_context.html'), 'obj:\n') def test_basic_context(self): self.assertEqual(loader.render_to_string('test_context.html', - {'obj': 'test'}), 'obj:test') + {'obj': 'test'}), 'obj:test\n') def test_existing_context_kept_clean(self): context = Context({'obj': 'before'}) output = loader.render_to_string('test_context.html', {'obj': 'after'}, context_instance=context) - self.assertEqual(output, 'obj:after') + self.assertEqual(output, 'obj:after\n') self.assertEqual(context['obj'], 'before') def test_empty_list(self): |
