def METHOD_NAME(self):
    """
    Creates a rabbitmq channel
    """
    self.connection = pika.BlockingConnection(self.pikaparams)
    self.channel = self.connection.channel()
    try:
        yield self.channel
    finally:
        self.channel.close()
        self.connection.close()