'Test the general check of the validity of a tick message in the market community'

@blocking_call_on_reactor_thread
def test_check_tick_message(self):

    self.ask._signature = EMPTY_SIG
    [self.assertIsInstance(msg, DropMessage) for msg in self.market_community.check_tick_message([self.get_tick_message(self.ask)])]
    self.market_community.timeline.check = (lambda _: (False, None))
    [self.assertIsInstance(msg, DelayMessageByProof) for msg in self.market_community.check_tick_message([self.get_tick_message(self.ask)])]
    self.market_community.timeline.check = (lambda _: (True, None))
    self.ask.order_id._trader_id = TraderId(self.market_community.mid)
    [self.assertIsInstance(msg, DropMessage) for msg in self.market_community.check_tick_message([self.get_tick_message(self.ask)])]
