예제 #1
0
 def test_default_gravity_name(self):
     names = (
         'egm84',
         'egm96',
         'egm2008',
         'wgs84',
     )
     self.assertTrue(GravityModel.default_gravity_name() in names)
예제 #2
0
 def test_no_args(self):
     model = GravityModel()
     self.assertIsInstance(model, GravityModel)
     self.assertEqual(model.gravity_model_name(),
                      GravityModel.default_gravity_name())
예제 #3
0
 def setUp(self) -> None:
     self.name = GravityModel.default_gravity_name()
     self.datapath = GravityModel.default_gravity_path()
     self.model = GravityModel(self.name, self.datapath)