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

Method testPaths

test/IECore/PathMatcherTest.py:379–397  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

377 self.assertEqual( m1, m2 )
378
379 def testPaths( self ) :
380
381 m = IECore.PathMatcher()
382 self.assertEqual( m.paths(), [] )
383
384 m.addPath( "/a/b" )
385 self.assertEqual( m.paths(), [ "/a/b" ] )
386
387 m.addPath( "/a/.../b" )
388 self.assertEqual( m.paths(), [ "/a/b", "/a/.../b" ] )
389
390 m.removePath( "/a/.../b" )
391 self.assertEqual( m.paths(), [ "/a/b" ] )
392
393 m.addPath( "/a/b/c*d*" )
394 self.assertEqual( m.paths(), [ "/a/b", "/a/b/c*d*" ] )
395
396 m.clear()
397 self.assertEqual( m.paths(), [] )
398
399 def testMultipleMatchTypes( self ) :
400

Callers

nothing calls this directly

Calls 5

pathsMethod · 0.95
addPathMethod · 0.95
removePathMethod · 0.95
clearMethod · 0.95
PathMatcherMethod · 0.80

Tested by

no test coverage detected