Example #1
0
    def test_inherit(self):
        """Inherit property from parenthood

        /projects
            /spiderman      (apps/maya/name)
                /1000       (apps/maya/name)
                    /cache  (no metadata)

        """

        shot_path = os.path.join(self.project_path, '1000', 'cache')
        shot_entry = om.entry(shot_path, 'apps/maya/name')
        om.inherit(shot_entry)
        self.assertEquals(shot_entry.value, 'Maya 2015 Shot 1000')
Example #2
0
 def test_inherit_nonexisting(self):
     child_path = os.path.join(self.project_path, '1000')
     child_entry = om.entry(child_path, 'apps/maya/notexist')
     om.inherit(child_entry)
     self.assertEquals(child_entry.value, None)
Example #3
0
 def test_inherit(self):
     """Inherit"""
     child_path = os.path.join(self.project_path, '1000')
     child_entry = om.entry(child_path, 'apps/maya/version')
     om.inherit(child_entry)
     self.assertEquals(child_entry.value, 2015)