def METHOD_NAME(self, send_email):
    invitation, created = Invitation.objects.invite(
        from_user=self.user,
        to_user=self.another_user,
        obj=self.project,
    )
    self.assertTrue(created)
    self.assertFalse(invitation.expired)
    self.assertIsNotNone(invitation.backend)
    send_email.assert_called_once()
    send_email.reset_mock()
    invitation, created = Invitation.objects.invite(
        from_user=self.user,
        to_user=self.another_user,
        obj=self.project,
    )
    self.assertFalse(created)
    self.assertFalse(invitation.expired)
    send_email.assert_not_called()
    self.assertEqual(Invitation.objects.all().count(), 1)