From 8525bfc7fb2e868edf24fb5c6fea00bc871d7489 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 26 Oct 2013 14:06:21 +0200 Subject: Don't crash on non ascii bytestrings in db params. Thanks Karen Tracey for the report. Fix #422. --- 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 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ù') -- cgit v1.2.3