def METHOD_NAME(self):
    LayersTest.METHOD_NAME(self)
    # Note this is NOT a comprehensive test of cooker, as we can't easily
    # configure the test data.  But we can emulate the basics of the layer.conf
    # files, so that is what we will do.
    new_topdir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "testdata")
    new_bbpath = os.path.join(new_topdir, "build")
    self.d.setVar('TOPDIR', new_topdir)
    self.d.setVar('BBPATH', new_bbpath)
    self.d = bb.parse.handle("%s/conf/bblayers.conf" % new_bbpath, self.d, True)
    for layer in self.d.getVar('BBLAYERS').split():
        self.d = bb.parse.handle("%s/conf/layer.conf" % layer, self.d, True)
    self.layerindex = layerindexlib.LayerIndex(self.d)
    self.layerindex.load_layerindex('cooker://', load=['layerDependencies'])