def METHOD_NAME(
    self,
):  # noqa: E501
    # If members lack the "Set own properties" permission, they should
    # still be able to log in, and their login times should be set.
    now = DateTime()
    self.portal.manage_permission(SetOwnProperties, ["Manager"], acquire=0)
    form = self.portal.restrictedTraverse("@@login")
    form._post_login()
    membership = self.layer["portal"].portal_membership
    member = membership.getAuthenticatedMember()
    self.assertTrue(DateTime(member.getProperty("last_login_time")) >= now)