Esempio n. 1
0
 def test_hourAngleIntersection(self):
     h = Horizon()
     # doesn't rise
     self.assertEquals(0.0, h.hourAngleIntersection(-80.0))
     # never sets
     self.assertEquals(12.0, h.hourAngleIntersection(90.0))
     # in between
     self.assertAlmostEquals(5.567149, h.hourAngleIntersection(0.0), 3)
     self.assertAlmostEquals(8.62116, h.hourAngleIntersection(45.0), 3)