From 7d5593bc528cd1f350b23093b00807f15e6153a3 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 27 Oct 2013 20:12:38 +0100 Subject: Fix a few tests that broke after 982f341. --- tests/tests.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'tests/tests.py') diff --git a/tests/tests.py b/tests/tests.py index 9c5e5a7..746516b 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -172,13 +172,18 @@ class DebugToolbarIntegrationTestCase(TestCase): def test_non_ascii_bytes_in_db_params(self): response = self.client.get('/non_ascii_bytes_in_db_params/') - self.assertContains(response, 'djàngó') + if six.PY3: + self.assertContains(response, 'djàngó') + else: + self.assertContains(response, 'dj\\xe0ng\\xf3') def test_non_ascii_session(self): response = self.client.get('/set_session/') - self.assertContains(response, 'où') - if not six.PY3: - self.assertContains(response, 'là') + if six.PY3: + self.assertContains(response, 'où') + else: + self.assertContains(response, 'o\\xf9') + self.assertContains(response, 'l\\xc3\\xa0') def test_object_with_non_ascii_repr_in_context(self): response = self.client.get('/non_ascii_context/') -- cgit v1.2.3