def test_admin_revoke_privileges_positive_with_ns_set(self):
        status = self.client.admin_grant_privileges(
            "usr-sys-admin-test",
            [{"code": aerospike.PRIV_READ, "ns": "test", "set": "demo"}])

        assert status == 0
        time.sleep(1)
        roles = self.client.admin_query_role("usr-sys-admin-test")
        assert roles == [{'code': 0, 'ns': '', 'set': ''},
                         {'code': 1, 'ns': '', 'set': ''},
                         {'code': 10, 'ns': 'test', 'set': 'demo'}]

        status = self.client.admin_revoke_privileges(
            "usr-sys-admin-test",
            [{"code": aerospike.PRIV_READ, "ns": "test", "set": "demo"}])

        time.sleep(1)
        assert status == 0
        roles = self.client.admin_query_role("usr-sys-admin-test")
        assert roles == [{'code': 0, 'ns': '', 'set': ''},
                         {'code': 1, 'ns': '', 'set': ''}]
sudo(command, sandbox=False, interactive=True, user=None, ignore_exit_status=False, initial_input=None)
dataset/ETHPy150Open aerospike/aerospike-client-python/test/old_tests/test_admin_revoke_privileges.py/TestRevokePrivilege.test_admin_revoke_privileges_positive_with_ns_set--crossover with--dataset/ETHPy150Open jonathanslenders/python-deployer/deployer/host_container.py/HostsContainer.sudo