def METHOD_NAME(self):
    """We can create a ProjectInvitation object"""
    created_at = datetime(2023, 5, 17, 14, 21, 0, tzinfo=pytz.utc)
    resent_at = datetime(2023, 5, 17, 14, 24, 0, tzinfo=pytz.utc)
    accepted_at = datetime(2023, 5, 17, 14, 25, 0, tzinfo=pytz.utc)
    revoked_at = datetime(2023, 5, 17, 14, 26, 0, tzinfo=pytz.utc)
    jane = self._create_user("jane", "1234")
    with patch("django.utils.timezone.now", Mock(return_value=created_at)):
        invitation = ProjectInvitation.objects.create(
            email="janedoe@example.com",
            project=self.project,
            role="editor",
            status=ProjectInvitation.Status.ACCEPTED,
            accepted_at=accepted_at,
            resent_at=resent_at,
            revoked_at=revoked_at,
            invited_by=self.user,
            accepted_by=jane,
        )
    self.assertEqual(f"{invitation}", f"janedoe@example.com|{self.project}")
    self.assertEqual(invitation.email, "janedoe@example.com")
    self.assertEqual(invitation.project, self.project)
    self.assertEqual(invitation.role, "editor")
    self.assertEqual(invitation.status, ProjectInvitation.Status.ACCEPTED)
    self.assertEqual(invitation.created_at, created_at)
    self.assertEqual(invitation.accepted_at, accepted_at)
    self.assertEqual(invitation.resent_at, resent_at)
    self.assertEqual(invitation.revoked_at, revoked_at)
    self.assertEqual(invitation.invited_by, self.user)
    self.assertEqual(invitation.accepted_by, jane)