'Test whether a cancel-order message is sent between nodes if we cancel an order'

@blocking_call_on_reactor_thread
@inlineCallbacks
def test_cancel_order(self):

    (yield self.introduce_nodes(self.node_a, self.node_b))
    order = (yield self.create_send_ask(self.node_a, self.node_b))
    self.node_a.community.cancel_order(order.order_id)
    (yield self.parse_assert_packets(self.node_b))
    self.assertEqual(len(self.node_b.community.order_book.asks), 0)
