def testAffects( self ) :

		p1 = GafferScene.Plane()
		p2 = GafferScene.Plane()
		g = GafferScene.Group()

		g["in"][0].setInput( p1["out"] )
		g["in"][1].setInput( p2["out"] )

		s = GafferScene.Set()
		s["in"].setInput( g["out"] )

		a = GafferScene.StandardAttributes()
		a["in"].setInput( s["out"] )

		# no filter attached - changing a set should affect only
		# the globals.

		cs = GafferTest.CapturingSlot( a.plugDirtiedSignal() )

		s["paths"].setValue( IECore.StringVectorData( [ "/group" ] ) )
		self.assertTrue( a["out"]["set"] in set( [ c[0] for c in cs ] ) )
		self.assertTrue( a["out"]["attributes"] not in set( [ c[0] for c in cs ] ) )

		# attach a filter - changing a set should affect the
		# attributes too.

		f = GafferScene.SetFilter()
		a["filter"].setInput( f["out"] )

		cs = GafferTest.CapturingSlot( a.plugDirtiedSignal() )

		s["paths"].setValue( IECore.StringVectorData( [ "/group/plane" ] ) )

		self.assertTrue( set( [ c[0] for c in cs ] ) in a["out"]["set"] )
		self.assertTrue( a["out"]["attributes"] in set( [ c[0] for c in cs ] ) )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferSceneTest/SetFilterTest.py/SetFilterTest.testAffects/swapped operands of `in`