In reply to silverace99:
Should be (1, pass=check_period(current_time))##0 pass; This makes the assertion pass or fail.