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

Method testIsEmpty

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

Source from the content-addressed store, hash-verified

566 self.assertTrue( m.isEmpty() )
567
568 def testIsEmpty( self ) :
569
570 m = IECore.PathMatcher( [] )
571 self.assertTrue( m.isEmpty() )
572
573 m.addPath( "/a" )
574 self.assertFalse( m.isEmpty() )
575
576 m.removePath( "/a" )
577 self.assertTrue( m.isEmpty() )
578
579 m.addPath( "/..." )
580 self.assertFalse( m.isEmpty() )
581
582 m.removePath( "/..." )
583 self.assertTrue( m.isEmpty() )
584
585 m.addPath( "/" )
586 self.assertFalse( m.isEmpty() )
587
588 m.removePath( "/" )
589 self.assertTrue( m.isEmpty() )
590
591 def testAddPaths( self ) :
592

Callers

nothing calls this directly

Calls 4

addPathMethod · 0.95
removePathMethod · 0.95
PathMatcherMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected