def METHOD_NAME(self):
    now = DateTime()
    member = self.layer["portal"].portal_membership.getAuthenticatedMember()
    self.assertTrue(DateTime(member.getProperty("login_time")) < now)
    form = self.portal.restrictedTraverse("@@login")
    form._post_login()
    membership = self.layer["portal"].portal_membership
    member = membership.getAuthenticatedMember()
    self.assertTrue(DateTime(member.getProperty("login_time")) >= now)