def test_form_valid_creates_authgroup_and_group(self):
        response = self.client.post(
            reverse('create_group'),
            {
                'authgroup_form-name': 'Writing tests on a Friday',
                'group_form-category': '1',
                'group_form-description': 'This is a new group.'}
        )
        self.assertEqual(response.status_code, 302)
        group = Group.objects.latest('pk')
        self.assertEqual(group.group.name, 'Writing tests on a Friday')
        self.assertEqual(group.description, 'This is a new group.')
A valid post should create a new group and authgroup.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/GroupCreateViewTest.test_form_valid_creates_authgroup_and_group