#NEWLINE# def testAdd_NewAndExisting_ManyTypes( self ) : #NEWLINE# #INDENT# a = entry . BaseLDAPEntry ( dn = 'dc=foo' , attributes = { #NEWLINE# #INDENT# 'foo' : [ 'bar' ] , #NEWLINE# 'baz' : [ 'quux' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# b = entry . BaseLDAPEntry ( dn = 'dc=foo' , attributes = { #NEWLINE# #INDENT# 'foo' : [ 'bar' , 'thud' , 'bang' ] , #NEWLINE# 'baz' : [ 'quux' , 'bar' , 'stump' ] , #NEWLINE# 'bang' : [ 'thud' , 'barble' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# result = a . diff ( b ) #NEWLINE# self . assertEquals ( self , delta . ModifyOp ( 'dc=foo' , [ delta . Add ( 'bang' , [ 'thud' , 'barble' ] ) , delta . Add ( 'baz' , [ 'bar' , 'stump' ] ) , delta . Add ( 'foo' , [ 'thud' , 'bang' ] ) ] ) )