

def testIsolateNothing(self):
    sphere = GafferScene.Sphere()
    sphere['sets'].setValue('sphereSet')
    i = GafferScene.Isolate()
    i['in'].setInput(sphere['out'])
    pathFilter = GafferScene.PathFilter()
    i['filter'].setInput(pathFilter['out'])
    pathFilter['paths'].setValue(IECore.StringVectorData(['/sphere']))
    self.assertEqual(i['out'].childNames('/'), IECore.InternedStringVectorData(['sphere']))
    self.assertEqual(pathFilter['out'].set('sphereSet').value.paths(), ['/sphere'])
    pathFilter['paths'].setValue(IECore.StringVectorData())
    self.assertEqual(i['out'].set('sphereSet').value.paths(), [])
    self.assertEqual(i['out'].childNames('/'), IECore.InternedStringVectorData())

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferSceneTest/IsolateTest.py IsolateTest.testIsolateNothing/VarMisuse@115/175 `i`->`pathFilter`