def METHOD_NAME(self):
    # load queen gal file created using Open Geoda.
    geodaW = ps_open(pysal_examples.get_path("virginia_rook.gal"), "r").read()
    # build matching W with pysal
    pysalWb = self.build_W(pysal_examples.get_path("virginia.shp"), ROOK, "POLY_ID")
    # 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)