Exemplo n.º 1
0
 def test_eta_incompatible_units(self):
     self.eta.units = Unit('km')
     with self.assertRaises(ValueError):
         OceanSg2Factory(**self.kwargs)
Exemplo n.º 2
0
 def test_c_too_many_bounds(self):
     self.c.nbounds = 4
     with self.assertRaises(ValueError):
         OceanSg2Factory(**self.kwargs)
Exemplo n.º 3
0
 def test_depth_c_non_scalar(self):
     self.depth_c.shape = (2, )
     with self.assertRaises(ValueError):
         OceanSg2Factory(**self.kwargs)
Exemplo n.º 4
0
 def test_values(self):
     factory = OceanSg2Factory(**self.kwargs)
     self.assertEqual(factory.dependencies, self.kwargs)