'Test sending an offer sync'

@blocking_call_on_reactor_thread
def test_send_offer_sync(self):

    self.market_community.update_ip(TraderId('0'), ('127.0.0.1', 1234))
    self.market_community.update_ip(TraderId('1'), ('127.0.0.1', 1234))
    self.market_community.update_ip(self.ask.order_id.trader_id, ('127.0.0.1', 1234))
    candidate = WalkCandidate(('127.0.0.1', 1234), False, ('127.0.0.1', 1234), ('127.0.0.1', 1234), u'public')
    self.assertTrue(self.market_community.send_offer_sync(candidate, self.ask))
