def test_edit_owner_user(self):
     form = OrganizationUserForm(instance=self.owner,
             data={'is_admin': True})
     self.assertTrue(form.is_valid())
     form = OrganizationUserForm(instance=self.owner,
             data={'is_admin': False})
     self.assertFalse(form.is_valid())
 def test_edit_owner_user(self):
     form = OrganizationUserForm(instance=self.owner,
                                 data={"is_admin": True})
     self.assertTrue(form.is_valid())
     form = OrganizationUserForm(instance=self.owner,
                                 data={"is_admin": False})
     self.assertFalse(form.is_valid())
 def test_save_user_form(self):
     form = OrganizationUserForm(instance=self.owner, data={"is_admin": True})
     self.assertTrue(form.is_valid())
     form.save()
 def test_save_user_form(self):
     form = OrganizationUserForm(instance=self.owner,
                                 data={"is_admin": True})
     self.assertTrue(form.is_valid())
     form.save()