def METHOD_NAME(self):
    # load queen gal file created using Open Geoda.
    stl = pysal_examples.load_example("stl")
    gal_file = test_file = stl.get_path("stl_hom_rook.gal")
    geodaW = ps_open(gal_file, "r").read()
    # build matching W with pysal
    pysalWb = self.build_W(stl.get_path("stl_hom.shp"), ROOK, "POLY_ID_OG")
    # compare output.
    for key in geodaW.neighbors:
        geoda_neighbors = list(map(int, geodaW.neighbors[key]))
        pysalb_neighbors = pysalWb.neighbors[int(key)]
        geoda_neighbors.sort()
        pysalb_neighbors.sort()
        self.assertEqual(geoda_neighbors, pysalb_neighbors)