def test_basic(self, dp, poll):
        handler = PollHandler(self.callback_basic)
        dp.add_handler(handler)

        assert handler.check_update(poll)

        dp.process_update(poll)
        assert self.test_flag
 def test_other_update_types(self, false_update):
     handler = PollHandler(self.callback_basic)
     assert not handler.check_update(false_update)