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

Method testNonExistentSubtree

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

Source from the content-addressed store, hash-verified

860 self.assertEqual( set( m2.paths() ), set( expectedPaths + [ "/d/e/g" ] ) )
861
862 def testNonExistentSubtree( self ) :
863
864 m1 = IECore.PathMatcher( "/a/b" )
865 m2 = m1.subTree( "/wot?" )
866
867 self.assertEqual( m2.paths(), [] )
868
869 def testSubTreeWithNonTerminatingRoot( self ) :
870

Callers

nothing calls this directly

Calls 3

subTreeMethod · 0.95
PathMatcherMethod · 0.80
pathsMethod · 0.45

Tested by

no test coverage detected