diff options
| author | Aymeric Augustin | 2013-10-27 20:12:38 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-10-27 20:12:38 +0100 |
| commit | 7d5593bc528cd1f350b23093b00807f15e6153a3 (patch) | |
| tree | 87425fa280f16aad668f0ab7a80f3dbcada0a41c /tests/tests.py | |
| parent | 2faf80e0413f048213e05a0338d816df2706df64 (diff) | |
| download | django-debug-toolbar-7d5593bc528cd1f350b23093b00807f15e6153a3.tar.bz2 | |
Fix a few tests that broke after 982f341.
Diffstat (limited to 'tests/tests.py')
| -rw-r--r-- | tests/tests.py | 13 |
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/') |
