def __init__(self, methodName): unittest.TestCase.__init__(self, methodName) self.m = 1 self.a_b = 2 self.type = 1 self.xl = 1.5 self.particle = Spheroid(self.m, self.a_b, self.type) self.particle.set_xl(self.xl)
def testDelta4(self): m = 2 a_b = 2 type = -1 particle = Spheroid(m, a_b, type) particle.set_xl(1.5) nu = 0.3 self.assertAlmostEquals( IzIn(nu, particle) * RIt(nu, particle) - IzIt(nu, particle) * RIn(nu, particle), -metric_phi(nu, particle))