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