

def testSearchDependencies(self):
    artifact_registry.REGISTRY.ClearSources()
    artifact_registry.REGISTRY.AddFileSource(self.test_artifacts_file)
    (names, expansions) = artifact_registry.REGISTRY.SearchDependencies('Windows', ['TestAggregationArtifactDeps', 'DepsParent'])
    self.assertItemsEqual(names, ['DepsHomedir', 'DepsHomedir2', 'DepsDesktop', 'DepsParent', 'DepsWindir', 'DepsWindirRegex', 'DepsControlSet', 'TestAggregationArtifactDeps'])
    self.assertItemsEqual(expansions, ['current_control_set', 'users.homedir', 'users.desktop', 'environ_windir', 'users.username'])
    (names, expansions) = artifact_registry.REGISTRY.SearchDependencies('Darwin', ['TestCmdArtifact', 'TestFileArtifact'])
    self.assertItemsEqual(expansions, [])

dataset/ETHPy150Open google/grr/grr/lib/artifact_utils_test.py ArtifactHandlingTest.testSearchDependencies/VarMisuse@119/241 `names`->`expansions`