

def testGlobalsDoNotDependOnScenePath(self):
    pathFilter = GafferScene.PathFilter()
    pathFilter['paths'].setValue(IECore.StringVectorData(['/grid/borderLines']))
    grid = GafferScene.Grid()
    isolate = GafferScene.Isolate()
    isolate['in'].setInput(grid['out'])
    grid['filter'].setInput(pathFilter['out'])
    c = Gaffer.Context()
    with c:
        h1 = isolate['out']['globals'].hash()
        c['scene:path'] = IECore.InternedStringVectorData(['grid'])
        h2 = isolate['out']['globals'].hash()
        c['scene:path'] = IECore.InternedStringVectorData(['grid', 'centerLines'])
        h3 = isolate['out']['globals'].hash()
    self.assertEqual(h1, h2)
    self.assertEqual(h2, h3)

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferSceneTest/IsolateTest.py IsolateTest.testGlobalsDoNotDependOnScenePath/VarMisuse@64/105 `isolate`->`grid`