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

Method testSlashInKey

test/IECore/ObjectReader.py:60–66  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

58 self.assertEqual( c["melon"].value, 2.5)
59
60 def testSlashInKey( self ) :
61
62 c = IECore.CompoundData( { "a/b" : IECore.StringData( "test" ) } )
63 IECore.ObjectWriter( c, os.path.join( "test", "compoundData.cob" ) ).write()
64 c2 = IECore.ObjectReader( os.path.join( "test", "compoundData.cob" ) ).read()
65
66 self.assertEqual( c, c2 )
67
68 def tearDown( self ) :
69

Callers

nothing calls this directly

Calls 6

CompoundDataMethod · 0.80
ObjectWriterMethod · 0.80
joinMethod · 0.80
ObjectReaderMethod · 0.80
writeMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected