Ejemplo n.º 1
0
 def test_sometimes_visible(self):
     now = ephem.visibility(greenwich.equatorial_transiting_at_ve,
                                 self.site, self.time)
     later = ephem.visibility(greenwich.equatorial_transiting_at_ve_p12hr,
                                 self.site, self.time)
     self.assertEqual(now[tkeys.type], 'sometimes')
     self.assertEqual(later[tkeys.type], 'sometimes')
Ejemplo n.º 2
0
        def test_tgt(tgt):
#            print "----------------------------"
#            print "Target: ", tgt
#            print
            for site in self.sites:
                vis = ephem.visibility(tgt, site, self.time)
                site_report = self.template.render(site=site,
                                                   vis=vis,
                                                   dt_style=datetime_format_long)
Ejemplo n.º 3
0
 def test_never_visible(self):
     e = ephem.visibility(greenwich.never_visible_source,
                                 self.site, self.time)
     self.assertEqual(e[tkeys.type], 'never')
Ejemplo n.º 4
0
 def test_always_visible(self):
     e = ephem.visibility(greenwich.circumpolar_north_transit_at_ve,
                                 self.site, self.time)
     self.assertEqual(e[tkeys.type], 'always')