Mercurial > public > sg101
diff bio/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/bio/tests/test_views.py Sat Jan 04 21:34:31 2025 -0600 +++ b/bio/tests/test_views.py Wed Jan 22 17:58:16 2025 -0600 @@ -44,8 +44,10 @@ self.assertEqual(len(response.redirect_chain), 1) if response.redirect_chain: - self.assertEqual(response.redirect_chain[0][0], - 'http://testserver' + reverse('bio-view_profile', + self.assertEqual( + response.redirect_chain[0][0], + reverse( + 'bio-view_profile', kwargs={'username': self.USERNAME})) self.assertEqual(response.redirect_chain[0][1], 302) @@ -76,8 +78,10 @@ self.assertEqual(len(response.redirect_chain), 1) if response.redirect_chain: - self.assertEqual(response.redirect_chain[0][0], - 'http://testserver' + reverse('bio-view_profile', + self.assertEqual( + response.redirect_chain[0][0], + reverse( + 'bio-view_profile', kwargs={'username': self.USERNAME})) self.assertEqual(response.redirect_chain[0][1], 302)