'Test that glob works on registry.'

def testGlobRegistry(self):

    paths = ['HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows    NT\\CurrentVersion\\ProfileList\\ProfilesDirectory', 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows    NT\\CurrentVersion\\ProfileList\\AllUsersProfile']
    for _ in flow_test_lib.TestFlowHelper(filesystem.Glob.__name__, self.client_mock, paths=paths, pathtype=rdf_paths.PathSpec.PathType.REGISTRY, client_id=self.client_id, token=self.token):
        pass
    path = paths[0].replace('\\', '/')
    fd = aff4.FACTORY.Open(self.client_id.Add('registry').Add(path), token=self.token)
    self.assertEqual(fd.__class__.__name__, 'VFSFile')
    self.assertEqual(fd.Get(fd.Schema.STAT).registry_data.GetValue(), '%SystemDrive%\\Users')
