diff options
| author | Aymeric Augustin | 2013-10-26 14:06:21 +0200 | 
|---|---|---|
| committer | Aymeric Augustin | 2013-10-26 14:15:23 +0200 | 
| commit | 8525bfc7fb2e868edf24fb5c6fea00bc871d7489 (patch) | |
| tree | 548b38900a9d1ba0c8b189fd6642936278f366b6 /tests/tests.py | |
| parent | 3a5492b471d907bdb66c627914264ee1f2d4e537 (diff) | |
| download | django-debug-toolbar-8525bfc7fb2e868edf24fb5c6fea00bc871d7489.tar.bz2 | |
Don't crash on non ascii bytestrings in db params.
Thanks Karen Tracey for the report. Fix #422.
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 3c28f79..7fb4a87 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -169,6 +169,10 @@ class DebugToolbarIntegrationTestCase(TestCase):          self.assertContains(response, 'LÀTÍN')      # template          self.assertContains(response, 'djDebug')    # toolbar +    def test_non_ascii_bytes_in_db_params(self): +        response = self.client.get('/non_ascii_bytes_in_db_params/') +        self.assertContains(response, 'djàngó') +      def test_non_ascii_session(self):          response = self.client.get('/set_session/')          self.assertContains(response, 'où') | 
