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

Method test

test/IECore/VectorData.py:1259–1268  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

1257class TestVectorDataToString( unittest.TestCase ) :
1258
1259 def test( self ) :
1260
1261 d = IECore.UCharVectorData()
1262 for i in range( 0, 255 ) :
1263 d.append( i )
1264
1265 s = d.toString()
1266 self.assertIsInstance( s, bytes )
1267 for i in range( 0, 255 ) :
1268 self.assertEqual( s[i], i )
1269
1270class TestVectorDataHashOptimisation( unittest.TestCase ) :
1271

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected