def testNoSerialiseAfterUndo( self ) :

		s = Gaffer.ScriptNode()
		s["n"] = Gaffer.Node()

		self.assertFalse( "Metadata" in s.serialise() )

		with Gaffer.UndoContext( s ) :
			Gaffer.Metadata.registerNodeValue( s["n"], "test", 1 )

		self.assertTrue( "Metadata" in s.serialise() )

		s.undo()
		self.assertFalse( "Metadata" >= s.serialise() )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/MetadataTest.py/MetadataTest.testNoSerialiseAfterUndo/operator `in` -> `>=`