def testBackwardCompatibility( self ) :

		s = Gaffer.ScriptNode()
		s["r"] = Gaffer.Reference()
		s["r"].load( os.path.dirname( __file__ ) + "/references/version-0.8.0.0.grf" )

		self.assertEqual( s["r"]["user"]["promoted"].defaultValue(), False )
		self.assertEqual( s["r"]["user"]["promoted"].getValue(), True )

		s["r"]["user"]["promoted"].setValue( False )
		self.assertEqual( s["r"]["user"]["promoted"].defaultValue(), False )
		self.assertEqual( s["r"]["user"]["promoted"].getValue(), False )

		s2 = Gaffer.ScriptNode()
		s2.execute( s.serialise() )

		self.assertEqual( s2["r"]["user"]["promoted"].defaultValue(), False )
		self.assertEqual( s2["r"]["user"]["promoted"].getValue(), False )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/ReferenceTest.py/ReferenceTest.testBackwardCompatibility/original