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

Method testIO

test/IECore/DateTimeDataTest.py:70–80  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

68 self.assertNotEqual( d, dd )
69
70 def testIO( self ) :
71
72 d = IECore.DateTimeData()
73 IECore.ObjectWriter( d, os.path.join( "test", "IECore", "DateTimeData.cob" ) ).write()
74 dd = IECore.ObjectReader( os.path.join( "test", "IECore", "DateTimeData.cob" ) ).read()
75 self.assertEqual( d, dd )
76
77 d = IECore.DateTimeData( datetime.datetime.now() )
78 IECore.ObjectWriter( d, os.path.join( "test", "IECore", "DateTimeData.cob" ) ).write()
79 dd = IECore.ObjectReader( os.path.join( "test", "IECore", "DateTimeData.cob" ) ).read()
80 self.assertEqual( d, dd )
81
82 def testRepr( self ) :
83

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