for plan in get_plans(memory): # check plan state assert_equals(plan.state, 'done')