def test_checkoutorder(): sys = System() order = sys.newOrder() price = sys.checkoutOrder(order) assert sys.checkOrderStatus(0) == 'cooking' assert price == order.price
def test_checkOrderStatus_blank(): sys = System() sys.newOrder() assert sys.checkOrderStatus(0) == None
def test_updateOrderStatus(): sys = System() sys.newOrder() sys.updateOrderStatus(0, 'cooking') assert sys.checkOrderStatus(0) == 'cooking'