#NEWLINE# def testAddMembersWithSpecificNames( self ) : #NEWLINE# #INDENT# p = Gaffer . CompoundDataPlug ( ) #NEWLINE# p . addMembers ( IECore . CompoundData ( { #NEWLINE# #INDENT# 'one' : 1 , #NEWLINE# #UNINDENT# } ) , useNameAsPlugName = True ) #NEWLINE# self . assertEqual ( len ( p ) , 1 ) #NEWLINE# self . assertEqual ( p [ 0 ] . getName ( ) , 'one' ) #NEWLINE# o = IECore . CompoundObject ( ) #NEWLINE# p . fillCompoundObject ( o ) #NEWLINE# self . assertEqual ( self , IECore . CompoundObject ( { #NEWLINE# #INDENT# 'one' : IECore . IntData ( 1 ) , #NEWLINE# #UNINDENT# } ) )