(self, listen_for)
Utility method to sanity check the `listen_for` parameter.

        Call at the start of your consume() implementation.
Utility method to sanity check the `listen_for` parameter.
Utility method to sanity check the listen_for parameter .
def _sanity_check_listen_for(self, listen_for):
        """Utility method to sanity check the `listen_for` parameter.

        Call at the start of your consume() implementation.
        """
        if not listen_for:
            raise NothingToListenFor(
                "EventTransport.consume() was called without providing anything "
                'to listen for in the "listen_for" argument.'
            )
def _sanity_check_listen_for ( self , listen_for ) : if not listen_for : raise NothingToListenFor ( "EventTransport.consume() was called without providing anything " 'to listen for in the "listen_for" argument.' )