def METHOD_NAME(docker_cmd_run_all_wrapper, rabbitmq_container):
    """
    Test rabbitmq_user.present
    Create user then delete it.
    """
    # Clear the user
    ret = rabbitmq_user.present("myuser")
    expected = {
        "name": "myuser",
        "result": True,
        "comment": "'myuser' was configured.",
        "changes": {"user": {"old": "", "new": "myuser"}},
    }
    assert ret == expected
    # Delete the user
    ret = rabbitmq_user.absent("myuser")
    expected = {
        "name": "myuser",
        "result": True,
        "comment": "The user 'myuser' was removed.",
        "changes": {"name": {"old": "myuser", "new": ""}},
    }
    assert ret == expected
    ret = rabbitmq_user.present(
        "myuser",
        password="password",
        force=True,
        tags=["monitoring", "user"],
        perms=[{"/": [".*", ".*", "test$"]}],
    )
    expected = {
        "name": "myuser",
        "result": True,
        "comment": "'myuser' was configured.",
        "changes": {
            "user": {"old": "", "new": "myuser"},
            "tags": {"old": [""], "new": ["monitoring", "user"]},
            "perms": {
                "new": {"/": {"configure": ".*", "write": ".*", "read": "test$"}}
            },
        },
    }
    assert ret == expected
    ret = rabbitmq_user.present(
        "myuser",
        password="password",
        force=True,
        tags=["monitoring", "user"],
        perms=[{"/": ["", "", ".*"]}],
    )
    expected = {
        "name": "myuser",
        "result": True,
        "comment": "'myuser' was configured.",
        "changes": {
            "password": {"old": "", "new": "Set password."},
            "perms": {
                "old": {"configure": ".*", "write": ".*", "read": "test$"},
                "new": {"/": {"configure": "", "write": "", "read": ".*"}},
            },
        },
    }
    assert ret == expected
    # Delete the user
    ret = rabbitmq_user.absent("myuser")
    expected = {
        "name": "myuser",
        "result": True,
        "comment": "The user 'myuser' was removed.",
        "changes": {"name": {"old": "myuser", "new": ""}},
    }
    assert ret == expected