def test_save_confirm_is_false_user_does_not_get_banned(self):
        self.assertFalse(self.banned_user.is_banned)
        # Submit the form to ban the user
        form = forms.BanUserForm(
            {'user': self.banned_user.pk, 'confirm': False})
        self.assertTrue(form.is_valid())
        form.save()

        # Make sure the user is banned
        user = User.objects.get(pk=self.banned_user.pk)
        self.assertFalse(user.is_banned)
If confirm is False, don't ban the user.
dataset/ETHPy150Open ofa/connect/open_connect/accounts/tests/test_forms.py/BanUserFormTest.test_save_confirm_is_false_user_does_not_get_banned