def test_get_form_superuser(self):
        user = self.create_superuser()
        self.client.login(username=user.email, password='moo')
        response = self.client.get(reverse('create_invite'))
        form = response.context['form']
        self.assertIn('is_superuser', form.fields.keys())
        self.assertIn('is_staff', form.fields.keys())
        self.assertQuerysetItemsEqual(
            form.fields['groups'].queryset, Group.objects.all())
get_form should have all fields and all groups.
dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_views.py/InviteCreateViewTest.test_get_form_superuser