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

Method testConstructor

test/IECore/ObjectPoolTest.py:43–51  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

41class ObjectPoolTest( unittest.TestCase ) :
42
43 def testConstructor( self ) :
44
45 p = IECore.ObjectPool(500)
46 self.assertTrue( isinstance( p, IECore.ObjectPool ) )
47 self.assertEqual( p.memoryUsage(), 0 )
48 self.assertEqual( p.getMaxMemoryUsage(), 500 )
49
50 p2 = IECore.ObjectPool.defaultObjectPool()
51 self.assertTrue( isinstance( p2, IECore.ObjectPool ) )
52
53 def testUniqueness( self ) :
54

Callers

nothing calls this directly

Calls 4

memoryUsageMethod · 0.95
getMaxMemoryUsageMethod · 0.95
ObjectPoolMethod · 0.80
defaultObjectPoolMethod · 0.80

Tested by

no test coverage detected