def test_is_course_complete_should_give_true_if_there_was_no_recent_update(): delta = total_seconds(datetime.timedelta(days=31)) tm = time() - delta rv = is_course_complete(tm) assert rv is True