

def testSetSelectedPathsAfterPathChange(self):
    d = {
        
    }
    p = Gaffer.DictPath(d, '/')
    w = GafferUI.PathListingWidget(p)
    d['a'] = 10
    p.pathChangedSignal()(p)
    w.setSelectedPaths([p.copy().setFromString('/a')])
    s = w.getSelectedPaths()
    self.assertEqual(len(s), 1)
    self.assertEqual(str(s[0]), '/a')

dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUITest/PathListingWidgetTest.py PathListingWidgetTest.testSetSelectedPathsAfterPathChange/original