def test_select_hierarchies(self): ws = Workspace() dim_time = ws.dimension("base_time") dim_date = ws.dimension("base_date") self.assertLess(len(dim_date.hierarchies), len(dim_time.hierarchies))
def test_base_existence(self): ws = Workspace() dim = ws.dimension("base_time") self.assertEqual(dim.name, "base_time")
def test_base_ignorance(self): ws = Workspace(load_base_model=False) with self.assertRaises(NoSuchDimensionError): ws.dimension("base_time")