def testSerialisation( self ) :

		s = Gaffer.ScriptNode()
		s["optionsNode"] = GafferScene.CustomOptions()
		s["optionsNode"]["options"].addMember( "test", IECore.IntData( 10 ) )
		s["optionsNode"]["options"].addMember( "test2", IECore.StringData( "10" ) )

		ss = s.serialise()

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

		g = s2["optionsNode"]["out"]["globals"].getValue()
		self.assertEqual( len( g ), 2 )
		self.assertEqual( g["option:test"], IECore.IntData( 10 ) )
		self.assertEqual( g["option:test2"], IECore.StringData( "10" ) )
		self.assertTrue( s2["optionsNode"] not in "options1" )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferSceneTest/CustomOptionsTest.py/CustomOptionsTest.testSerialisation/swapped operands of `not in`