#NEWLINE# def test( self ) : #NEWLINE# #INDENT# p = self . __parameters ( ) #NEWLINE# p = GafferCortex . ParameterPath ( p , '/' ) #NEWLINE# self . failUnless ( p . isValid ( ) ) #NEWLINE# self . failIf ( p . isLeaf ( ) ) #NEWLINE# children = p . children ( ) #NEWLINE# self . assertEqual ( len ( children ) , 4 ) #NEWLINE# for child in children : #NEWLINE# #INDENT# self . failUnless ( isinstance ( child , GafferCortex . ParameterPath ) ) #NEWLINE# if ( self [ ( - 1 ) ] in ( 'c' , 'cv' ) ) : #NEWLINE# #INDENT# self . failIf ( child . isLeaf ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . failUnless ( child . isLeaf ( ) ) #NEWLINE# #UNINDENT# self . assertEqual ( child [ ( - 1 ) ] , child . info ( ) [ 'parameter:parameter' ] . name )