Mercurial > public > sg101
diff forums/tests/test_views.py @ 1206:02181fa5ac9d modernize tip
Update to Django 1.9.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 22 Jan 2025 17:58:16 -0600 |
parents | 9e803323a0d0 |
children |
line wrap: on
line diff
--- a/forums/tests/test_views.py Sat Jan 04 21:34:31 2025 -0600 +++ b/forums/tests/test_views.py Wed Jan 22 17:58:16 2025 -0600 @@ -37,9 +37,9 @@ self.assertEqual(len(response.redirect_chain), 1) if response.redirect_chain: - self.assertEqual(response.redirect_chain[0][0], - 'http://testserver' + reverse('forums-new_topic_thanks', - kwargs={'tid': '1'})) + self.assertEqual( + response.redirect_chain[0][0], + reverse('forums-new_topic_thanks', kwargs={'tid': '1'})) self.assertEqual(response.redirect_chain[0][1], 302) self.assertEqual(response.status_code, 200)