def test_get_success_url(self):
        view = views.InviteCreateView()
        view.request = self.request
        result = view.get_success_url()
        self.assertEqual(result, reverse('invites'))
get_success_url should return the URL of the invite list page.
dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_views.py/InviteCreateViewTest.test_get_success_url