def test( self ) :

		path = Gaffer.SequencePath( self.__dictPath() )

		self.failUnless( path.isValid() )
		self.failUnless( not path.isLeaf() )

		path.append( "dir" )
		self.failUnless( path.isValid() )
		self.failUnless( not path.isLeaf() )

		path[0] = "oops!"
		self.failIf( path.isValid() )
		self.failIf( path.isLeaf() )

		path[:] = [ "dir" ]
		children = path.children()
		for child in children :
			self.failUnless( isinstance( child, Gaffer.SequencePath ) )

		self.assertEqual( len( children ), 2 )
		childrenStrings = [ str( c ) for c in children ]
		self.failUnless( "/dir/a.#.exr 1-10" in childrenStrings )
		self.failUnless( "/dir/b.####.tiff 20-200x2" in childrenStrings )
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferTest/SequencePathTest.py/SequencePathTest.test/original