Esempio n. 1
0
 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))
Esempio n. 2
0
 def test_base_existence(self):
     ws = Workspace()
     dim = ws.dimension("base_time")
     self.assertEqual(dim.name, "base_time")
Esempio n. 3
0
 def test_base_ignorance(self):
     ws = Workspace(load_base_model=False)
     with self.assertRaises(NoSuchDimensionError):
         ws.dimension("base_time")
Esempio n. 4
0
 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))
Esempio n. 5
0
 def test_base_existence(self):
     ws = Workspace()
     dim = ws.dimension("base_time")
     self.assertEqual(dim.name, "base_time")
Esempio n. 6
0
 def test_base_ignorance(self):
     ws = Workspace(load_base_model=False)
     with self.assertRaises(NoSuchDimensionError):
         ws.dimension("base_time")