( self )
| 293 | self.assertEqual( m.match( "/a/b/c" ), IECore.PathMatcher.Result.NoMatch ) |
| 294 | |
| 295 | def testRemoveEllipsis( self ) : |
| 296 | |
| 297 | m = IECore.PathMatcher() |
| 298 | m.addPath( "/a/.../b" ) |
| 299 | |
| 300 | self.assertEqual( m.match( "/a" ), IECore.PathMatcher.Result.DescendantMatch ) |
| 301 | self.assertEqual( m.match( "/a/c" ), IECore.PathMatcher.Result.DescendantMatch ) |
| 302 | self.assertEqual( m.match( "/a/c/b" ), IECore.PathMatcher.Result.ExactMatch | IECore.PathMatcher.Result.DescendantMatch ) |
| 303 | |
| 304 | m.removePath( "/a/.../b" ) |
| 305 | |
| 306 | self.assertEqual( m.match( "/a" ), IECore.PathMatcher.Result.NoMatch ) |
| 307 | self.assertEqual( m.match( "/a/c" ), IECore.PathMatcher.Result.NoMatch ) |
| 308 | self.assertEqual( m.match( "/a/c/b" ), IECore.PathMatcher.Result.NoMatch ) |
| 309 | |
| 310 | def testAddPathReturnValue( self ) : |
| 311 |
nothing calls this directly
no test coverage detected