Skip to content

Commit 424b2c9

Browse files
committed
Dont use assertIn (only available in unittest2)
1 parent 3bebfca commit 424b2c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _test_view(request):
147147
panel.process_request(request)
148148
panel.process_view(request, _test_view, [], {})
149149
content = panel.content()
150-
self.assertIn('tests.tests._test_view', content)
150+
self.assertTrue('tests.tests._test_view' in content, content)
151151

152152
def test_without_process_view(self):
153153
request = self.request
@@ -156,7 +156,7 @@ def test_without_process_view(self):
156156
panel = self.toolbar.get_panel(RequestVarsDebugPanel)
157157
panel.process_request(request)
158158
content = panel.content()
159-
self.assertIn('<no view>', content)
159+
self.assertTrue('<no view>' in content, content)
160160

161161
class DebugToolbarNameFromObjectTest(BaseTestCase):
162162
def test_func(self):

0 commit comments

Comments
 (0)