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

Method testConstructWithParameters

test/IECoreScene/Shader.py:58–66  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

56 self.assertEqual( ss.type, s.type )
57
58 def testConstructWithParameters( self ) :
59
60 s = IECoreScene.Shader( "test", "surface", IECore.CompoundData( { "a" : IECore.StringData( "a" ) } ) )
61
62 self.assertEqual( s.name, "test" )
63 self.assertEqual( s.type, "surface" )
64 self.assertEqual( len( s.parameters ), 1 )
65 self.assertEqual( s.parameters.typeName(), IECore.CompoundData.staticTypeName() )
66 self.assertEqual( s.parameters["a"], IECore.StringData( "a" ) )
67
68 def testCopy( self ) :
69

Callers

nothing calls this directly

Calls 5

CompoundDataMethod · 0.80
typeNameMethod · 0.80
staticTypeNameMethod · 0.80
lenFunction · 0.50
ShaderMethod · 0.45

Tested by

no test coverage detected