diff options
Diffstat (limited to 'tests/template_tests/test_base.py')
| -rw-r--r-- | tests/template_tests/test_base.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/template_tests/test_base.py b/tests/template_tests/test_base.py new file mode 100644 index 0000000000..5320af5e9a --- /dev/null +++ b/tests/template_tests/test_base.py @@ -0,0 +1,8 @@ +from django.template.base import VariableDoesNotExist +from django.test import SimpleTestCase + + +class VariableDoesNotExistTests(SimpleTestCase): + def test_str(self): + exc = VariableDoesNotExist(msg='Failed lookup in %r', params=({'foo': 'bar'},)) + self.assertEqual(str(exc), "Failed lookup in {'foo': 'bar'}") |
