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')
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)
def test_never_visible(self): e = ephem.visibility(greenwich.never_visible_source, self.site, self.time) self.assertEqual(e[tkeys.type], 'never')
def test_always_visible(self): e = ephem.visibility(greenwich.circumpolar_north_transit_at_ve, self.site, self.time) self.assertEqual(e[tkeys.type], 'always')