diff --git a/tests/regressiontests/test_utils/tests.py b/tests/regressiontests/test_utils/tests.py
index 72a8154..4661703 100644
a
|
b
|
class AssertTemplateUsedContextManagerTests(TestCase):
|
140 | 140 | with self.assertTemplateUsed('template_used/base.html'): |
141 | 141 | pass |
142 | 142 | except AssertionError, e: |
143 | | self.assertTrue('template_used/base.html' in e.message) |
| 143 | self.assertTrue('template_used/base.html' in unicode(e)) |
144 | 144 | |
145 | 145 | try: |
146 | 146 | with self.assertTemplateUsed(template_name='template_used/base.html'): |
147 | 147 | pass |
148 | 148 | except AssertionError, e: |
149 | | self.assertTrue('template_used/base.html' in e.message) |
| 149 | self.assertTrue('template_used/base.html' in unicode(e)) |
150 | 150 | |
151 | 151 | try: |
152 | 152 | with self.assertTemplateUsed('template_used/base.html'): |
153 | 153 | render_to_string('template_used/alternative.html') |
154 | 154 | except AssertionError, e: |
155 | | self.assertTrue('template_used/base.html' in e.message, e.message) |
156 | | self.assertTrue('template_used/alternative.html' in e.message, e.message) |
| 155 | self.assertTrue('template_used/base.html' in unicode(e), unicode(e)) |
| 156 | self.assertTrue('template_used/alternative.html' in unicode(e), unicode(e)) |
157 | 157 | |
158 | 158 | def test_failure(self): |
159 | 159 | with self.assertRaises(TypeError): |