def testSerialisation( self ) :

		s = Gaffer.ScriptNode()
		s["n"] = GafferRenderMan.RenderManShader()
		s["n"].loadShader( "plastic" )

		ss = s.serialise()

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

		st = s["n"].state()
		self.assertEqual( len( st ), 1 )

		self.assertEqual( st[0].type, "ri:surface" )
		self.assertEqual( st[0].name, "plastic" )

		self.failUnless( isinstance( s["n"]["parameters"]["Ks"], Gaffer.FloatPlug ) )
		self.failUnless( isinstance( s["n"]["parameters"]["Kd"], Gaffer.FloatPlug ) )
		self.failUnless( isinstance( s["n"]["parameters"]["Ka"], Gaffer.FloatPlug ) )
		self.failUnless( isinstance( s["n"]["parameters"]["roughness"], Gaffer.FloatPlug ) )
		self.failUnless( isinstance( s["n"]["parameters"]["specularcolor"], Gaffer.Color3fPlug ) )

		self.assertTrue( s["n"] not in "parameters1" )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferRenderManTest/RenderManShaderTest.py/RenderManShaderTest.testSerialisation/swapped operands of `not in`