def METHOD_NAME(self):
    ref = AzimuthalIntegrator.sload(self.poniFile)
    obt = AzimuthalIntegrator()
    print(ref)
    f2d = ref.getFit2D()
    print(f2d)
    obt.setFit2D(**f2d)
    print(obt)
    for key in ["dist", "poni1", "poni2", "rot1", "rot2", "rot3", "pixel1", "pixel2", "splineFile"]:
        refv = ref.__getattribute__(key)
        obtv = obt.__getattribute__(key)
        if refv is None:
            self.assertEqual(refv, obtv, "%s: %s != %s" % (key, refv, obtv))
        else:
            self.assertAlmostEqual(refv, obtv, 4, "%s: %s != %s" % (key, refv, obtv))