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

Method testHash

test/IECoreScene/OutputTest.py:83–102  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

81 self.assertEqual( ccc, c )
82
83 def testHash( self ) :
84
85 d = IECoreScene.Output()
86 h = d.hash()
87
88 d.setName( "somethingElse" )
89 self.assertNotEqual( h, d.hash() )
90 h = d.hash()
91
92 d.setType( "tif" )
93 self.assertNotEqual( h, d.hash() )
94 h = d.hash()
95
96 d.setData( "a" )
97 self.assertNotEqual( h, d.hash() )
98 h = d.hash()
99
100 d.parameters()["something"] = IECore.StringData( "a" )
101 self.assertNotEqual( h, d.hash() )
102 h = d.hash()
103
104 def tearDown( self ) :
105

Callers

nothing calls this directly

Calls 6

hashMethod · 0.95
setNameMethod · 0.95
setTypeMethod · 0.95
setDataMethod · 0.95
OutputMethod · 0.80
parametersMethod · 0.45

Tested by

no test coverage detected