A library that computes the ephemerides.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

18 rindas
495 B

  1. import unittest
  2. from kosmorrolib import data, core
  3. class DataTestCase(unittest.TestCase):
  4. def test_object_radius_must_be_set_to_get_apparent_radius(self):
  5. o = data.Planet('Saturn', 'SATURN')
  6. with self.assertRaises(ValueError) as context:
  7. o.get_apparent_radius(core.get_timescale().now(), core.get_skf_objects()['earth'])
  8. self.assertEqual(('Missing radius for Saturn object',), context.exception.args)
  9. if __name__ == '__main__':
  10. unittest.main()