def dir_list(load): ''' Return a list of all directories on the master ''' gitfs = salt.utils.gitfs.GitFS(__opts__) gitfs.init_remotes(__opts__['gitfs_remotes'], PER_REMOTE_OVERRIDES) return gitfs.dir_list(load)
def test_dir_list(self): ret = gitfs.dir_list(LOAD) self.assertIn('grail', ret)