#NEWLINE# def testConstructWithFilter( self ) : #NEWLINE# #INDENT# p = Gaffer . Path ( '/test/path' ) #NEWLINE# self . failUnless ( ( p . getFilter ( ) is None ) ) #NEWLINE# f = Gaffer . FileNamePathFilter ( [ '*.exr' ] ) #NEWLINE# p = Gaffer . Path ( '/test/path' , filter = f ) #NEWLINE# self . failUnless ( p . getFilter ( ) . isSame ( f ) )