MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testUserData

Method testUserData

test/IECore/Parameters.py:687–704  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

685 self.assertRaises( RuntimeError, p.validate )
686
687 def testUserData( self ):
688 compound = IECore.CompoundObject()
689 compound["first"] = IECore.IntData()
690 compound["second"] = IECore.QuatfData()
691 compound["third"] = IECore.StringData("test")
692 p = IECore.FileNameParameter(
693 name = "f",
694 description = "d",
695 extensions = "tif tiff jpg cin",
696 check = IECore.FileNameParameter.CheckType.DontCare,
697 allowEmptyString = True,
698 userData = compound
699 )
700 self.assertEqual( p.userData(), compound )
701 self.assertTrue(not p.userData().isSame(compound) )
702 data = p.userData()
703 data["fourth"] = IECore.CharData('1')
704 data["first"] = data["fourth"]
705
706 def testNoExtensions( self ) :
707

Callers

nothing calls this directly

Calls 3

CompoundObjectMethod · 0.80
FileNameParameterMethod · 0.80
userDataMethod · 0.45

Tested by

no test coverage detected