Пример #1
0
 def test_read_cube_name_from_mdx(self):
     all_cube_names = self.tm1.cubes.get_all_names()
     for cube_name in all_cube_names:
         private_views, public_views = self.tm1.cubes.views.get_all(cube_name)
         for view in private_views + public_views:
             mdx = view.MDX
             self.assertEquals(
                 cube_name.upper().replace(" ", ""),
                 MDXUtils.read_cube_name_from_mdx(mdx))
Пример #2
0
 def test_read_cube_name_from_mdx(self):
     all_cube_names = self.tm1.cubes.get_all_names()
     all_cube_names_normalized = [
         cube_name.upper().replace(" ", "") for cube_name in all_cube_names
     ]
     for cube_name in all_cube_names:
         private_views, public_views = self.tm1.cubes.views.get_all(
             cube_name)
         for view in private_views + public_views:
             mdx = view.MDX
             cube_name = MDXUtils.read_cube_name_from_mdx(mdx)
             self.assertIn(cube_name, all_cube_names_normalized)