'Test the add trade method of an order'

def test_add_trade(self):

    self.order.reserve_quantity_for_tick(OrderId(TraderId('5'), OrderNumber(1)), Quantity(10, 'MC'))
    self.assertEquals(self.order.traded_quantity, Quantity(0, 'MC'))
    self.order.add_trade(OrderId(TraderId('5'), OrderNumber(1)), Quantity(10, 'MC'))
    self.assertEquals(self.order.traded_quantity, Quantity(10, 'MC'))
