aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAymeric Augustin2013-10-27 20:12:38 +0100
committerAymeric Augustin2013-10-27 20:12:38 +0100
commit7d5593bc528cd1f350b23093b00807f15e6153a3 (patch)
tree87425fa280f16aad668f0ab7a80f3dbcada0a41c
parent2faf80e0413f048213e05a0338d816df2706df64 (diff)
downloaddjango-debug-toolbar-7d5593bc528cd1f350b23093b00807f15e6153a3.tar.bz2
Fix a few tests that broke after 982f341.
-rw-r--r--tests/tests.py13
1 files changed, 9 insertions, 4 deletions
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/')