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

Method testIO

test/IECore/TimeCodeDataTest.py:161–171  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

159 self.assertNotEqual( t, tt )
160
161 def testIO( self ) :
162
163 t = IECore.TimeCodeData()
164 IECore.ObjectWriter( t, os.path.join( "test", "IECore", "TimeCodeData.cob" ) ).write()
165 tt = IECore.ObjectReader( os.path.join( "test", "IECore", "TimeCodeData.cob" ) ).read()
166 self.assertEqual( t, tt )
167
168 t = IECore.TimeCodeData( IECore.TimeCode( 12, 24, 12, 15, dropFrame = True, bgf1 = True, binaryGroup6 = 12 ) )
169 IECore.ObjectWriter( t, os.path.join( "test", "IECore", "TimeCodeData.cob" ) ).write()
170 tt = IECore.ObjectReader( os.path.join( "test", "IECore", "TimeCodeData.cob" ) ).read()
171 self.assertEqual( t, tt )
172
173 def testRepr( self ) :
174

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected