'Test whether a trade is made between two nodes'

@blocking_call_on_reactor_thread
@inlineCallbacks
def test_accept_trade(self):

    deferred = Deferred()
    def mocked_start_transaction(*_):
        deferred.callback(None)
    self.node_b.community.start_transaction = mocked_start_transaction
    (yield self.introduce_nodes(self.node_a, self.node_b))
    (yield self.create_send_ask(self.node_a, self.node_b))
    self.node_b.community.create_bid(10, 'DUM1', 10, 'DUM2', 3600)
    (yield self.parse_assert_packets(self.node_a))
    (yield self.parse_assert_packets(self.node_b))
    (yield deferred)
