diff options
| author | Aymeric Augustin | 2013-10-18 18:08:17 +0200 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-10-18 18:09:15 +0200 | 
| commit | ccbf178a3351106e25422b898f09cdca60a1c6e5 (patch) | |
| tree | 442eb02929f8b2ed640a7d864242c4ee81f4b3cd /tests/tests.py | |
| parent | 7196171fadb3478b660451bed344bf13c270f9af (diff) | |
| download | django-debug-toolbar-ccbf178a3351106e25422b898f09cdca60a1c6e5.tar.bz2 | |
Fix crash with objects having a non-ASCII repr in context.
Diffstat (limited to 'tests/tests.py')
| -rw-r--r-- | tests/tests.py | 4 | 
1 files changed, 4 insertions, 0 deletions
| 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 | 
