def test_redirects_to_details_on_success(self):
        response = self.client.post(
            reverse('create_group'),
            {
                'authgroup_form-name': 'Writing tests on a Friday',
                'group_form-category': '1'}
        )
        group = Group.objects.latest('pk')
        self.assertRedirects(
            response,
            reverse('group_details', args=[group.pk])
        )
User with permission posting a valid form should be redirected.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/GroupCreateViewTest.test_redirects_to_details_on_success