

def testSets(self):
    light1 = GafferSceneTest.TestLight()
    light2 = GafferSceneTest.TestLight()
    group = GafferScene.Group()
    group['in'][0].setInput(light1['out'])
    group['in'][1].setInput(light2['out'])
    lightSet = group['out'].set('__lights')
    self.assertEqual(set(lightSet.value.paths()), set(['/group/light', '/group/light1']))
    isolate = GafferScene.Isolate()
    isolate['in'].setInput(group['out'])
    lightSet = isolate['out'].set('__lights')
    self.assertEqual(set(lightSet.value.paths()), set(['/group/light', '/group/light1']))
    filter = GafferScene.PathFilter()
    isolate['filter'].setInput(filter['out'])
    lightSet = lightSet['out'].set('__lights')
    self.assertEqual(set(lightSet.value.paths()), set([]))
    filter['paths'].setValue(IECore.StringVectorData(['/group/light']))
    lightSet = isolate['out'].set('__lights')
    self.assertEqual(set(lightSet.value.paths()), set(['/group/light']))
    filter['paths'].setValue(IECore.StringVectorData(['/group/light*']))
    lightSet = isolate['out'].set('__lights')
    self.assertEqual(set(lightSet.value.paths()), set(['/group/light', '/group/light1']))

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferSceneTest/IsolateTest.py IsolateTest.testSets/VarMisuse@184/272 `isolate`->`lightSet`