def test_get_success_url(self):
        url = self.view.get_success_url()
        self.assertEqual(url, reverse('group_details', args=[self.group1.pk]))
Test the get_success_url method
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/TestGroupInviteView.test_get_success_url