Module Import alias Import alias Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str ImportFrom alias Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Str BinOpMod Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str Assign NameStore Call NameLoad keyword NameLoad keyword Str keyword Str keyword Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A os N/A unittest N/A sys N/A N/A N/A N/A sys path append N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ ../lib systestlib DutSystemTest N/A TEST_SSH_KEY ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKL1UtBALa4CvFUsHUipNymA04qCXuAtTwNcMj84bTUzUI+q7mdzRCTLkllXeVxKuBnaTm2PW7W67K5CVpl0EVCm6IY7FS7kc4nlnD/tFvTvShy/fzYQRAdM7ZfVtegW8sMSFJzBR/T/Y/sxI16Y/dQb8fC3la9T25XOrzsFrQiKRZmJGwg8d+0RLxpfMg0s/9ATwQKp6tPoLE4f3dKlAgSk5eENyVLA3RsypWADHpenHPcB7sa8D38e1TS+n+EUyAdb3Yov+5ESAbgLIJLd52Xv+FyYi0c2L49ByBjcRrupp4zfXn4DNRnEG4K6GcmswHuMEGZv5vjJ9OYaaaaaaa TestApiUsers N/A DutSystemTest N/A test_get N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A no username test username test nopassword N/A username test sshkey %s TEST_SSH_KEY N/A result N/A N/A N/A N/A dut api users get test N/A values N/A dict nopassword True privilege 1 secret role format sshkey TEST_SSH_KEY N/A result N/A N/A self sort_dict_by_keys result N/A values N/A N/A self sort_dict_by_keys values N/A N/A N/A self assertEqual values result N/A test_getall N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A no username test username test nopassword N/A result N/A N/A N/A N/A dut api users getall N/A N/A N/A self assertIsInstance result dict N/A dut=%s dut N/A N/A N/A self assertIn test result N/A dut=%s dut N/A test_create N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A no username test username test nopassword N/A api N/A N/A dut api users N/A result N/A N/A api create test nopassword True N/A N/A N/A self assertTrue result N/A N/A N/A self assertIn username test privilege 1 N/A api config N/A test_delete N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A username test nopassword N/A api N/A N/A dut api users N/A N/A N/A self assertIn username test privilege 1 nopassword N/A api config N/A result N/A N/A api delete test N/A N/A N/A self assertTrue result N/A N/A N/A self assertNotIn username test privilege 1 nopassword N/A api config N/A test_default N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A username test nopassword N/A api N/A N/A dut api users N/A N/A N/A self assertIn username test privilege 1 nopassword N/A api config N/A result N/A N/A api default test N/A N/A N/A self assertTrue result N/A N/A N/A self assertNotIn username test nopassword N/A api config N/A test_set_privilege_with_value N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A no username test username test nopassword N/A api N/A N/A dut api users N/A N/A N/A self assertIn username test privilege 1 nopassword N/A api config N/A result N/A N/A api set_privilege test 8 N/A N/A N/A self assertTrue result N/A N/A N/A self assertIn username test privilege 8 nopassword N/A api config N/A test_set_privilege_with_no_value N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A no username test username test privilege 8 nopassword N/A api N/A N/A dut api users N/A N/A N/A self assertIn username test privilege 8 N/A api config N/A result N/A N/A api set_privilege test N/A N/A N/A self assertTrue result N/A N/A N/A self assertIn username test privilege 1 N/A api config N/A test_set_role_with_value N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A no username test username test nopassword N/A api N/A N/A dut api users N/A N/A N/A self assertIn username test privilege 1 nopassword N/A api config N/A result N/A N/A api set_role test network-admin N/A N/A N/A self assertTrue result N/A N/A N/A self assertIn username test privilege 1 role network-admin nopassword N/A api config N/A test_set_role_with_no_value N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A no username test username test role network-admin nopassword N/A api N/A N/A dut api users N/A N/A N/A self assertIn username test privilege 1 role network-admin nopassword N/A api config N/A result N/A N/A api set_role test N/A N/A N/A self assertTrue result N/A N/A N/A self assertNotIn username test privilege 1 role network-admin nopassword N/A api config N/A test_set_sshkey_with_value N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A no username test username test nopassword N/A api N/A N/A dut api users N/A N/A N/A self assertIn username test privilege 1 nopassword N/A api config N/A N/A N/A self assertNotIn username test sshkey N/A api config N/A result N/A N/A api set_sshkey test TEST_SSH_KEY N/A N/A N/A self assertTrue result N/A N/A N/A self assertIn N/A username test sshkey %s TEST_SSH_KEY N/A api config N/A test_set_sshkey_with_empty_string N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A no username test username test nopassword N/A api N/A N/A dut api users N/A N/A N/A self assertIn username test privilege 1 nopassword N/A api config N/A N/A N/A self assertNotIn username test sshkey N/A api config N/A result N/A N/A api set_sshkey test N/A N/A N/A self assertTrue result N/A N/A N/A self assertNotIn N/A username test sshkey %s TEST_SSH_KEY N/A api config N/A test_set_sshkey_with_None N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A no username test username test nopassword N/A api N/A N/A dut api users N/A N/A N/A self assertIn username test privilege 1 nopassword N/A api config N/A N/A N/A self assertNotIn username test sshkey N/A api config N/A result N/A N/A api set_sshkey test None N/A N/A N/A self assertTrue result N/A N/A N/A self assertNotIn N/A username test sshkey %s TEST_SSH_KEY N/A api config N/A test_set_sshkey_with_no_value N/A N/A self N/A N/A N/A dut N/A self duts N/A N/A N/A N/A dut config N/A no username test username test nopassword N/A api N/A N/A dut api users N/A N/A N/A self assertIn username test privilege 1 nopassword N/A api config N/A result N/A N/A api set_sshkey test disable True N/A N/A N/A self assertTrue result N/A N/A N/A self assertNotIn N/A username test sshkey %s TEST_SSH_KEY N/A api config N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main