def test_create_cube(self): cube = { "name": "cube", "dimensions": ["date"], "aggregates": ["record_count"], "details": ["some_detail", "another_detail"] } cube = create_cube(cube) self.assertEqual(cube.name, "cube") self.assertEqual(len(cube.aggregates), 1) self.assertEqual(len(cube.details), 2)
def cube(self, name): """Create a cube object `name` from measures test model.""" return create_cube(self.cubes_md[name])