Skip to content

Commit

Permalink
horizon
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Nov 22, 2015
1 parent eb66a71 commit e6b13af
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rebound/tests/test_horizons.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ def setUp(self):
def tearDown(self):
self.sim = None

#def test_earth(self):
# self.sim.add("Earth",date="2000-01-01 00:00")
# self.assertAlmostEqual(self.sim.particles[0].x,-0.16855044899082616,delta=1e-10)
# self.assertAlmostEqual(self.sim.particles[0].m,3.0404326480226416e-06,delta=1e-15)
#
#def test_notfound(self):
# with self.assertRaises(Exception):
# self.sim.add("BogusPlanet",date="2000-01-01 00:00")
def test_earth(self):
self.sim.add("Earth",date="2000-01-01 00:00")
self.assertAlmostEqual(self.sim.particles[0].x,-0.16855044899082616,delta=1e-10)
self.assertAlmostEqual(self.sim.particles[0].m,3.0404326480226416e-06,delta=1e-15)

def test_notfound(self):
with self.assertRaises(Exception):
self.sim.add("BogusPlanet",date="2000-01-01 00:00")


0 comments on commit e6b13af

Please sign in to comment.