def test_invalid_modify_delivery_address():
    address = Address('100 John Rd', 'Toronto', 'ON', 'L5M 7U6')
    order = Order(100)
    order.set_order_type('delivery')
    order.set_delivery_address(address)
    order.set_order_status('out for delivery')

    new_address = Address('200 John Rd', 'Toronto', 'ON', 'L5M 7U6')
    assert order.modify_delivery_order(new_address) is False, "Should not be able to modify delivery order if " \
                                                              "status is out for delivery"
def test_cancel_order_in_progress():
    delivery_address = Address('100 John Rd', 'Toronto', 'ON', 'M5R 7U6')
    order = Order('100')
    order.set_order_status('in-progress')
    assert order.cancel_order() is False, "Should not be able to cancel order if in-progress"