def METHOD_NAME(self, mock_can_invite_guest, mock_has_permission):
    mock_can_invite_guest.return_val = True
    mock_has_permission.return_val = True
    # revoke
    resp = self.client.post(self.endpoint)
    self.assertEqual(200, resp.status_code)
    tmp_user = User.objects.get(self.tmp_username)
    assert len(Invitation.objects.all()) == 0
    assert tmp_user.is_active is False
    # invite again
    invite_endpoint = '/api/v2.1/invitations/'
    resp = self.client.post(invite_endpoint, {
        'type': 'guest',
        'accepter': self.tmp_username,
    })
    self.assertEqual(201, resp.status_code)
    assert len(Invitation.objects.all()) == 1