def test_handle_done_2_with_done_null_when_completed_on_has_initial_value(self): # With actionitem.done not set, completed on should be forced empty actionitem = ActionItem() actionitem.completed_on = random_date() print actionitem.completed_on actionitem = actionitem.handle_done(actionitem) assert actionitem.completed_on is None
def test_handle_done_4_with_done_set_false_removes_completed_on(self): # Completed on should be removed if done is false actionitem = ActionItem() actionitem.completed_on = random_date() actionitem = actionitem.handle_done(actionitem) assert actionitem.completed_on is None