def user_exists(self, username):
        cmd = 'rabbitmqctl list_users'
        users = self.execute(cmd, stdout=False, sudo=True)
        return username in users
Checks if the RabbitMQ user exists.
dataset/ETHPy150Open python-provy/provy/provy/more/debian/messaging/rabbitmq.py/RabbitMqRole.user_exists