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

Method testSetNoClass

test/IECore/ClassParameterTest.py:110–125  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

108 self.assertEqual( c.keys(), [ "emptyString", "normalString", "stringWithSpace", "stringWithManySpaces" ] )
109
110 def testSetNoClass( self ) :
111
112 c = IECore.ClassParameter(
113 "n",
114 "d",
115 "IECORE_OP_PATHS",
116 os.path.join( "maths", "multiply" ),
117 2
118 )
119
120 self.assertEqual( c.keys(), [ "a", "b" ] )
121
122 c.setClass( "", 0 )
123
124 self.assertEqual( c.keys(), [] )
125 self.assertEqual( c.getClass( True ), ( None, "", 0, "IECORE_OP_PATHS" ) )
126
127 def testSerialiseAndParse( self ) :
128

Callers

nothing calls this directly

Calls 4

setClassMethod · 0.95
getClassMethod · 0.95
joinMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected