#NEWLINE# def testFormatter( self ) : #NEWLINE# #INDENT# n = Gaffer . Node ( ) #NEWLINE# l = GafferUI . NameLabel ( l ) #NEWLINE# self . assertEqual ( l . getText ( ) , n . getName ( ) ) #NEWLINE# l . setFormatter ( ( lambda x : '.' . join ( [ g . getName ( ) . upper ( ) for g in x ] ) ) ) #NEWLINE# n . setName ( 'somethingElse' ) #NEWLINE# self . assertEqual ( l . getText ( ) , 'SOMETHINGELSE' )