예제 #1
0
def test_checkoutorder():
    sys = System()
    order = sys.newOrder()
    price = sys.checkoutOrder(order)
    assert sys.checkOrderStatus(0) == 'cooking'
    assert price == order.price
예제 #2
0
def test_checkOrderStatus_blank():
    sys = System()
    sys.newOrder()
    assert sys.checkOrderStatus(0) == None
예제 #3
0
def test_updateOrderStatus():
    sys = System()
    sys.newOrder()
    sys.updateOrderStatus(0, 'cooking')
    assert sys.checkOrderStatus(0) == 'cooking'