def testSets( self ) :

		s = GafferScene.Sphere()
		s["sets"].setValue( "set" )

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

		d = GafferScene.Duplicate()
		d["in"].setInput( g["out"] )
		d["target"].setValue( "/group" )
		d["copies"].setValue( 5 )

		self.assertEqual(
			set( d["out"].set( "set" ).value.paths() ),
			set(
				[ "/group/sphere" ] +
				[ "/group%d/sphere" % n for n in range( 1, 6 ) ]
			)
		)

		d["target"].setValue( "/group/sphere" )
		d["copies"].setValue( 1500 )

		self.assertEqual(
			set( d["out"].set( "set" ).value.paths() ),
			set(
				[ "/group/sphere" ] +
				[ n % "/group/sphere%d" for n in range( 1, 1501 ) ]
			)
		)
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferSceneTest/DuplicateTest.py/DuplicateTest.testSets/swapped operands of `%`