コード例 #1
0
def test_can_delete_in_progress_state():
    #given
    status = Status.IN_PROGRESS

    #when
    item = Item("id", "title", status, "description", "26/09/2020" )

    #then
    assert item.can_delete() == False
コード例 #2
0
def test_can_delete_done_state():
    #given
    status = Status.DONE

    #when
    item = Item("id", "title", status, "description", "26/09/2020" )

    #then
    assert item.can_delete() == True
コード例 #3
0
def test_can_delete_todo_state():
    #given
    status = Status.TODO

    #when
    item = Item("id", "title", status, "description", "26/09/2020" )

    #then
    assert item.can_delete() == False