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

Method testEquality

test/IECoreVDB/VDBObjectTest.py:264–273  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

262 self.assertEqual( emptyVDB.fileName(), "" )
263
264 def testEquality( self ) :
265
266 o = IECoreVDB.VDBObject( os.path.join( self.dataDir, "smoke.vdb" ) )
267 self.assertEqual( o, o )
268
269 o2 = o.copy()
270 o2.findGrid( "density" ).mapAll( lambda value : value + 1 )
271
272 self.assertNotEqual( o2, o )
273 self.assertEqual( o2, o2 )
274
275if __name__ == "__main__":
276 unittest.main()

Callers

nothing calls this directly

Calls 4

VDBObjectMethod · 0.80
joinMethod · 0.80
findGridMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected