def METHOD_NAME(self, filename, base, vw):
    testhooks = {
        'entrypoints': (self._cmp_loc, vw.getEntryPoints()),
        'pointers': (self._cmp_loc, vw.getLocations(LOC_POINTER)),
        'strings': (self._cmp_loc, self._get_strtype(vw.getLocations(LOC_STRING))),
        'unicode': (self._cmp_loc, self._get_strtype(vw.getLocations(LOC_UNI))),
        'imports': (self._cmp_loc, vw.getImports()),
        'exports': (self._cmp_loc, vw.getExports()),
        'names': (self._cmp_loc, vw.getNames()),
        'xrefs': (self._cmp_loc, vw.getXrefs()),
        'relocations': (self._cmp_loc, vw.getRelocations()),
    }
    self._cmp_func(filename, base, vw)
    for name, (func, new) in testhooks.items():
        if name == 'strings' or name == 'unicode':
            basedata = self._get_strtype(base[name])
        else:
            basedata = base[name]
        func(filename, name, basedata, new)