def METHOD_NAME(self):
    m = Matrix()
    m.setByRotationAxis(math.pi / 2, Vector.Unit_Z)
    q1 = Quaternion.fromMatrix(m)
    q1.normalize()
    q2 = Quaternion()
    q2.setByAngleAxis(math.pi / 2, Vector.Unit_Z)
    self.assertTrue(Float.fuzzyCompare(q1.x, q2.x, 1e-6))
    self.assertTrue(Float.fuzzyCompare(q1.y, q2.y, 1e-6))
    self.assertTrue(Float.fuzzyCompare(q1.z, q2.z, 1e-6))
    self.assertTrue(Float.fuzzyCompare(q1.w, q2.w, 1e-6))