Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Import alias handlers ExceptHandler body Print Str Expr Call AttributeLoad NameLoad attr Num ClassDef bases NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr CompareEq SubscriptLoad Call AttributeLoad Call NameLoad attr Index Num NameLoad keyword Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad Call NameLoad attr Assign NameStore Dict Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler body Pass Assign NameStore Dict Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareIn Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assert CompareEq NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Num Assign NameStore Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Num Assign NameStore Str Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assert CompareEq NameLoad ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Num Assign NameStore NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Assign NameStore Str Assign NameStore ListLoad Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Assert CompareEq NameLoad Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assert CompareEq NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Num With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Assert CompareIn Str Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A N/A pytest N/A sys N/A time test_base_class TestBaseClass aerospike exception e N/A aerospike N/A N/A pytest importorskip aerospike N/A N/A N/A aerospike N/A N/A N/A N/A Please install aerospike python client. N/A N/A N/A sys exit 1 TestQueryUser N/A TestBaseClass N/A N/A pytestmark N/A N/A N/A pytest mark skipif N/A N/A N/A N/A N/A TestBaseClass get_hosts N/A 1 None reason No user specified, may be not secured cluster. setup_method N/A N/A self method N/A N/A N/A 
        Setup method
         N/A N/A hostlist user password N/A N/A N/A TestBaseClass get_hosts N/A config N/A hosts hostlist N/A N/A TestQueryUser Me self N/A N/A self client N/A N/A N/A N/A aerospike client config connect user password N/A N/A N/A N/A N/A N/A self client admin_drop_user example-test N/A N/A N/A N/A N/A policy N/A N/A user example-test N/A password foo2 N/A roles N/A read-write sys-admin read N/A N/A N/A N/A self client admin_create_user user password roles policy N/A N/A self delete_users N/A N/A teardown_method N/A N/A self method N/A N/A N/A 
        Teardown method
         N/A policy N/A N/A N/A N/A N/A self client admin_drop_user example-test policy N/A N/A N/A N/A self client close N/A test_query_user_without_any_parameters N/A N/A self N/A N/A N/A N/A N/A pytest raises TypeError typeError N/A N/A N/A N/A N/A self client admin_query_user N/A N/A Required argument 'user' (pos 1) not found N/A str N/A typeError value N/A test_query_user_with_proper_parameters N/A N/A self N/A N/A N/A user example-test N/A N/A N/A time sleep 2 N/A user_details N/A N/A N/A self client admin_query_user user N/A N/A user_details N/A read read-write sys-admin N/A test_query_user_with_invalid_timeout_policy_value N/A N/A self N/A N/A N/A policy N/A timeout 0.1 N/A user example-test N/A N/A N/A N/A N/A N/A self client admin_query_user user policy N/A N/A N/A N/A e ParamError N/A exception N/A N/A N/A N/A exception code -2 N/A N/A N/A exception msg timeout is invalid N/A test_query_user_with_proper_timeout_policy_value N/A N/A self N/A N/A N/A policy N/A timeout 30 N/A user example-test N/A N/A N/A time sleep 2 N/A user_details N/A N/A N/A self client admin_query_user user policy N/A N/A user_details N/A read read-write sys-admin N/A test_query_user_with_none_username N/A N/A self N/A N/A N/A policy N/A timeout 30 N/A user None N/A N/A N/A N/A N/A N/A self client admin_query_user user policy N/A N/A N/A N/A e ParamError N/A exception N/A N/A N/A N/A exception code -2 N/A N/A N/A exception msg Username should be a string N/A test_query_user_with_empty_username N/A N/A self N/A N/A N/A policy N/A N/A user N/A N/A N/A N/A N/A N/A self client admin_query_user user policy N/A N/A N/A N/A e InvalidUser N/A exception N/A N/A N/A N/A exception code 60 N/A N/A N/A exception msg AEROSPIKE_INVALID_USER N/A test_query_user_with_nonexistent_username N/A N/A self N/A N/A N/A policy N/A N/A user non-existent N/A N/A N/A N/A N/A N/A self client admin_query_user user policy N/A N/A N/A N/A e InvalidUser N/A exception N/A N/A N/A N/A exception code 60 N/A N/A N/A exception msg AEROSPIKE_INVALID_USER N/A test_query_user_with_no_roles N/A N/A self N/A N/A N/A policy N/A N/A user example-test N/A roles N/A sys-admin read read-write N/A status N/A N/A N/A self client admin_revoke_roles user roles policy N/A N/A status 0 N/A N/A N/A time sleep 2 N/A user_details N/A N/A N/A self client admin_query_user user N/A N/A user_details N/A N/A test_query_user_with_extra_argument N/A N/A self N/A N/A N/A 
            Invoke query_user() with extra argument.
         N/A policy N/A timeout 1000 N/A N/A N/A pytest raises TypeError typeError N/A N/A N/A N/A N/A self client admin_query_user foo policy N/A N/A admin_query_user() takes at most 2 arguments (3 given) N/A str N/A typeError value N/A test_query_user_with_policy_as_string N/A N/A self N/A N/A N/A 
            Invoke query_user() with policy as string
         N/A policy N/A N/A N/A N/A N/A N/A self client admin_query_user foo policy N/A N/A N/A N/A e AerospikeError N/A exception N/A N/A N/A N/A exception code -2 N/A N/A N/A exception msg policy must be a dict N/A N/A