'Test whether an error is returned when we try to cancel an order that has expired'

@deferred(timeout=10)
def test_cancel_order_invalid(self):

    self.session.lm.market_community.order_manager.create_ask_order(Price(3, 'DUM1'), Quantity(4, 'DUM2'), Timeout(0))
    self.should_check_equality = False
    return self.do_request('market/orders/1/cancel', request_type='POST', expected_code=400)
