def METHOD_NAME(self):
    url = reverse(
        "organization_team_member_add",
        args=[self.organization.slug, self.team.slug],
    )
    resp = self.client.post(url, data={"username_or_email": self.user.username})
    self.assertEqual(resp.status_code, 302)
    self.assertEqual(self.team.members.count(), 0)
    self.assertEqual(Invitation.objects.for_object(self.team).count(), 1)