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

Method testSaveAndLoad

test/IECoreScene/DiskPrimitiveTest.py:68–76  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

66 self.assertEqual( p, pp )
67
68 def testSaveAndLoad( self ) :
69
70 p = IECoreScene.DiskPrimitive( 2, 1, 180 )
71
72 io = IECore.IndexedIO.create( os.path.join( "test", "IECore", "disk.fio" ), IECore.IndexedIO.OpenMode.Write )
73 p.save( io, "test" )
74 pp = IECore.Object.load( io, "test" )
75
76 self.assertEqual( p, pp )
77
78 def tearDown( self ) :
79

Callers

nothing calls this directly

Calls 5

saveMethod · 0.95
joinMethod · 0.80
DiskPrimitiveMethod · 0.45
createMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected