'Test getting an artifact without a KB using retrieve_depdendencies.'

def testRetrieveDependencies(self):

    with vfs_test_lib.VFSOverrider(rdf_paths.PathSpec.PathType.REGISTRY, vfs_test_lib.FakeRegistryVFSHandler):
        with vfs_test_lib.VFSOverrider(rdf_paths.PathSpec.PathType.OS, vfs_test_lib.FakeFullVFSHandler):
            client_mock = action_mocks.ActionMock(standard.StatFile)
            artifact_list = ['WindowsEnvironmentVariableWinDir']
            for s in flow_test_lib.TestFlowHelper(collectors.ArtifactCollectorFlow.__name__, client_mock, artifact_list=artifact_list, token=self.token, client_id=self.client_id, dependencies=artifact_utils.ArtifactCollectorFlowArgs.Dependency.FETCH_NOW):
                session_id = s
            output = flow.GRRFlow.ResultCollectionForFID(session_id, token=self.token)
            self.assertEqual(len(output), 1)
            self.assertEqual(output[0], 'C:\\Windows')
