Ejemplo n.º 1
0
def ui_sterge_cheltuieli_din_ziua_data(l, undolist):
    zi = 0
    try:
        zi = int(input("Ziua: "))
    except ValueError:
        print("Ati introdus date gresite")
    sterge_cheltuieli_din_ziua_data(l, zi, undolist)
Ejemplo n.º 2
0
def ui_sterge_cheltuieli_din_ziua_data(l, undolist):
    zi = 0
    try:
        zi = int(input("Ziua: "))
    except ValueError:
        print("Ati introdus date gresite")
    sterge_cheltuieli_din_ziua_data(l, zi, undolist)
def test_sterge_cheltuieli_din_ziua_data():
    l=setUp()
    undolist = setUp()
    assert(len(l) == 5)
    
    sterge_cheltuieli_din_ziua_data(l,5, undolist)
    assert(len(l) == 4)
    
    sterge_cheltuieli_din_ziua_data(l, 4, undolist)
    assert(len(l) == 2)
Ejemplo n.º 4
0
def test_sterge_cheltuieli_din_ziua_data():
    l = setUp()
    undolist = setUp()
    assert (len(l) == 5)

    sterge_cheltuieli_din_ziua_data(l, 5, undolist)
    assert (len(l) == 4)

    sterge_cheltuieli_din_ziua_data(l, 4, undolist)
    assert (len(l) == 2)