Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad While CompareNotEq NameLoad Str body If Call AttributeLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str body Break Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BinOpBitOr AttributeLoad NameLoad attr Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BinOpBitOr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Str Str Str Assign AttributeStore NameLoad attr NameLoad Assign NameStore ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad comprehension NameStore NameLoad CompareNotIn Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr Str comprehension NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Num decorator_list Call NameLoad Str Call NameLoad Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Str keyword Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad FunctionDef arguments args defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Assign NameStore Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BinOpBitOr AttributeLoad NameLoad attr Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr BinOpBitOr AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore ListLoad Str Str For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword NameLoad Expr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListComp Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr Str comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list Call NameLoad Str Call NameLoad Str decorator_list
N/A N/A os N/A sys N/A stat N/A copy N/A lxml.etree mock Mock MagicMock patch Bcfg2.Client.Tools.POSIX.Directory * N/A path N/A N/A N/A os path dirname __file__ N/A N/A path / N/A N/A N/A N/A N/A N/A N/A N/A N/A os path basename path lower startswith test N/A N/A N/A N/A N/A sys path append path N/A N/A N/A N/A N/A os path basename path testsuite N/A N/A N/A path N/A N/A N/A os path dirname path Testbase TestPOSIXTool common * TestPOSIXDirectory N/A TestPOSIXTool N/A N/A test_obj POSIXDirectory test_verify N/A N/A self mock_verify mock_listdir N/A N/A N/A ptool N/A N/A self get_obj N/A N/A ptool _exists N/A Mock N/A entry N/A N/A N/A lxml etree Element Path name /test type directory mode 0644 owner root group root N/A N/A N/A ptool _exists return_value False N/A N/A N/A self assertFalse N/A N/A ptool verify entry N/A N/A N/A N/A N/A ptool _exists assert_called_with entry N/A N/A N/A N/A ptool _exists reset_mock N/A exists_rv N/A MagicMock N/A N/A N/A exists_rv __getitem__ return_value N/A N/A stat S_IFREG 420 N/A N/A N/A ptool _exists return_value exists_rv N/A N/A N/A self assertFalse N/A N/A ptool verify entry N/A N/A N/A N/A N/A ptool _exists assert_called_with entry N/A N/A N/A N/A ptool _exists reset_mock N/A N/A mock_verify return_value False N/A N/A N/A exists_rv __getitem__ return_value N/A N/A stat S_IFDIR 420 N/A N/A N/A self assertFalse N/A N/A ptool verify entry N/A N/A N/A N/A N/A ptool _exists assert_called_with entry N/A N/A N/A mock_verify assert_called_with ptool entry N/A N/A N/A N/A N/A ptool _exists reset_mock N/A N/A N/A mock_verify reset_mock N/A N/A mock_verify return_value True N/A N/A N/A self assertTrue N/A N/A ptool verify entry N/A N/A N/A N/A N/A ptool _exists assert_called_with entry N/A N/A N/A mock_verify assert_called_with ptool entry N/A N/A N/A N/A N/A ptool _exists reset_mock N/A N/A N/A mock_verify reset_mock N/A N/A N/A entry set prune true N/A orig_entry N/A N/A copy deepcopy entry N/A entries N/A foo bar bar/baz N/A N/A mock_listdir return_value entries N/A modlist N/A N/A N/A N/A os path join N/A N/A entry get name N/A entries N/A 0 N/A N/A N/A self assertFalse N/A N/A ptool verify entry modlist N/A N/A N/A N/A ptool _exists assert_called_with entry N/A N/A N/A mock_verify assert_called_with ptool entry modlist N/A N/A N/A mock_listdir assert_called_with N/A N/A entry get name N/A expected N/A N/A N/A N/A os path join N/A N/A entry get name e N/A e entries N/A N/A N/A N/A os path join N/A N/A entry get name e modlist N/A actual N/A N/A N/A e get name N/A e N/A N/A entry findall Prune N/A N/A N/A self assertItemsEqual expected actual N/A N/A N/A mock_verify reset_mock N/A N/A N/A N/A ptool _exists reset_mock N/A N/A N/A mock_listdir reset_mock N/A entry N/A N/A copy deepcopy orig_entry N/A modlist N/A N/A N/A N/A os path join N/A N/A entry get name e N/A e entries N/A N/A N/A self assertTrue N/A N/A ptool verify entry modlist N/A N/A N/A N/A ptool _exists assert_called_with entry N/A N/A N/A mock_verify assert_called_with ptool entry modlist N/A N/A N/A mock_listdir assert_called_with N/A N/A entry get name N/A N/A N/A self assertEqual N/A len N/A N/A entry findall Prune 0 N/A N/A patch os.listdir N/A patch Bcfg2.Client.Tools.POSIX.base.POSIXTool.verify test_install N/A N/A self mock_install mock_unlink N/A N/A N/A entry N/A N/A N/A lxml etree Element Path name /test/foo/bar type directory mode 0644 owner root group root N/A ptool N/A N/A self get_obj N/A N/A ptool _exists N/A Mock N/A N/A ptool _makedirs N/A Mock N/A N/A ptool _remove N/A Mock reset N/A N/A N/A N/A N/A N/A N/A N/A ptool _exists reset_mock N/A N/A N/A mock_install reset_mock N/A N/A N/A mock_unlink reset_mock N/A N/A N/A N/A ptool _makedirs reset_mock N/A N/A N/A N/A ptool _remove reset_mock N/A N/A N/A N/A ptool _makedirs return_value True N/A N/A N/A ptool _exists return_value False N/A N/A mock_install return_value True N/A N/A N/A self assertTrue N/A N/A ptool install entry N/A N/A N/A N/A ptool _exists assert_called_with entry N/A N/A N/A mock_install assert_called_with ptool entry N/A N/A N/A N/A ptool _makedirs assert_called_with entry N/A N/A reset N/A exists_rv N/A MagicMock N/A N/A N/A exists_rv __getitem__ return_value N/A N/A stat S_IFREG 420 N/A N/A N/A ptool _exists return_value exists_rv N/A N/A N/A self assertTrue N/A N/A ptool install entry N/A N/A N/A mock_unlink assert_called_with N/A N/A entry get name N/A N/A N/A N/A ptool _exists assert_called_with entry N/A N/A N/A N/A ptool _makedirs assert_called_with entry N/A N/A N/A mock_install assert_called_with ptool entry N/A N/A reset N/A N/A N/A exists_rv __getitem__ return_value N/A N/A stat S_IFDIR 420 N/A N/A mock_install return_value True N/A N/A N/A self assertTrue N/A N/A ptool install entry N/A N/A N/A N/A ptool _exists assert_called_with entry N/A N/A N/A mock_install assert_called_with ptool entry N/A N/A reset N/A N/A mock_install return_value False N/A N/A N/A self assertFalse N/A N/A ptool install entry N/A N/A N/A mock_install assert_called_with ptool entry N/A N/A N/A entry set prune true N/A prune N/A /test/foo/bar/prune1 /test/foo/bar/prune2 N/A path prune N/A N/A N/A N/A N/A lxml etree SubElement entry Prune name path N/A N/A reset N/A N/A mock_install return_value True N/A N/A N/A self assertTrue N/A N/A ptool install entry N/A N/A N/A N/A ptool _exists assert_called_with entry N/A N/A N/A mock_install assert_called_with ptool entry N/A N/A N/A self assertItemsEqual N/A N/A N/A N/A N/A c N/A 0 N/A 0 get name N/A c N/A N/A ptool _remove call_args_list prune N/A N/A patch os.unlink N/A patch Bcfg2.Client.Tools.POSIX.base.POSIXTool.install N/A