def testClassParameterSerialisation( self ) :

		s = Gaffer.ScriptNode()

		s["ph"] = GafferCortex.ParameterisedHolderNode()
		s["ph"].setParameterised( "classParameter", 1, "GAFFERCORTEXTEST_CLASS_PATHS" )

		p = s["ph"].getParameterised()[0]

		classSpec = self.classSpecification( "files/sequenceLs", "IECORE_OP_PATHS" )
		with s["ph"].parameterModificationContext() :
			p["class"].setClass( *classSpec )

		classPlugNames = s["ph"]["parameters"]["class"].keys()
		for k in p["class"].keys() :
			self.failUnless( classPlugNames in k )

		s["ph"]["parameters"]["class"]["recurse"].setValue( True )

		ss = s.serialise()

		s2 = Gaffer.ScriptNode()
		s2.execute( ss )

		self.assertEqual( s2["ph"]["parameters"]["class"].keys(), classPlugNames )

		p2 = s2["ph"].getParameterised()[0]

		self.assertEqual( p2["class"].getClass( True )[1:], classSpec )

		s2["ph"].parameterHandler().setParameterValue()
		self.assertEqual( p2["class"]["recurse"].getTypedValue(), True )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferCortexTest/ParameterisedHolderTest.py/ParameterisedHolderTest.testClassParameterSerialisation/swapped operands of `in`