#NEWLINE# def testGetMultiple( self ) : #NEWLINE# #INDENT# response = { #NEWLINE# #INDENT# 'Listeners' : { #NEWLINE# #INDENT# 'Listener' : [ { #NEWLINE# #INDENT# 'BackendServers' : { #NEWLINE# #INDENT# 'BackendServer' : [ { #NEWLINE# #INDENT# 'ServerHealthStatus' : 'status1' , #NEWLINE# 'ServerId' : 'id1' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'ServerHealthStatus' : 'status2' , #NEWLINE# 'ServerId' : 'id2' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } , #NEWLINE# 'ListenerPort' : 1 , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'BackendServers' : { #NEWLINE# #INDENT# 'BackendServer' : [ { #NEWLINE# #INDENT# 'ServerHealthStatus' : 'status3' , #NEWLINE# 'ServerId' : 'id3' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'ServerHealthStatus' : 'status4' , #NEWLINE# 'ServerId' : 'id4' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } , #NEWLINE# 'ListenerPort' : 2 , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# self . conn . get ( { #NEWLINE# #INDENT# 'Action' : 'DescribeBackendServers' , #NEWLINE# 'LoadBalancerId' : 'id' , #NEWLINE# #UNINDENT# } ) . AndReturn ( self ) #NEWLINE# expected = [ slb . ListenerStatus ( 1 , [ slb . BackendServerStatus ( 'id1' , 'status1' ) , slb . BackendServerStatus ( 'id2' , 'status2' ) ] ) , slb . ListenerStatus ( 2 , [ slb . BackendServerStatus ( 'id3' , 'status3' ) , slb . BackendServerStatus ( 'id4' , 'status4' ) ] ) ] #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# self . assertEqual ( expected , self . conn . get_backend_servers ( 'id' ) ) #NEWLINE# self . mox . VerifyAll ( )