Use /dashboard/ instead of / to avoid redirects
Accessing ``/`` while logged in redirects to ``/dashboard/`` in the
corporate site. This change makes this test compatible with both environments
@@ -155,12 +155,12 @@ class NotificationBackendTests(TestCase):
self.assertEqual(PersistentMessage.objects.filter(read=False).count(), 1)
self.client.force_login(user)
- response = self.client.get('/')
+ response = self.client.get('/dashboard/')
self.assertContains(response, 'Test success message')
self.assertEqual(PersistentMessage.objects.count(), 1)
self.assertEqual(PersistentMessage.objects.filter(read=True).count(), 1)
- response = self.client.get('/')
+ response = self.client.get('/dashboard/')
self.assertNotContains(response, 'Test success message')
