From ccbf178a3351106e25422b898f09cdca60a1c6e5 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 18 Oct 2013 18:08:17 +0200 Subject: Fix crash with objects having a non-ASCII repr in context. --- tests/tests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/tests.py') diff --git a/tests/tests.py b/tests/tests.py index 5886c12..86622fc 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -192,6 +192,10 @@ class DebugToolbarIntegrationTestCase(TestCase): if not six.PY3: self.assertContains(response, 'là') + def test_object_with_non_ascii_repr_in_context(self): + response = self.client.get('/non_ascii_context/') + self.assertContains(response, 'nôt åscíì') + def test_xml_validation(self): response = self.client.get('/regular/XML/') ET.fromstring(response.content) # shouldn't raise ParseError -- cgit v1.2.3