#NEWLINE# def testEqual( self ) : #NEWLINE# #INDENT# response = { #NEWLINE# #INDENT# 'BackendServerPort' : 1 , #NEWLINE# 'Cookie' : '' , #NEWLINE# 'Domain' : '' , #NEWLINE# 'HealthCheck' : 'off' , #NEWLINE# 'ListenerPort' : 1 , #NEWLINE# 'Scheduler' : 'wrr' , #NEWLINE# 'Status' : 'stopped' , #NEWLINE# 'StickySession' : 'off' , #NEWLINE# 'StickySessionapiType' : '' , #NEWLINE# 'URI' : '' , #NEWLINE# 'XForwardedFor' : 'off' , #NEWLINE# #UNINDENT# } #NEWLINE# self . conn . get ( { #NEWLINE# #INDENT# 'Action' : 'DescribeLoadBalancerHTTPListenerAttribute' , #NEWLINE# 'LoadBalancerId' : 'id' , #NEWLINE# 'ListenerPort' : 1 , #NEWLINE# #UNINDENT# } ) . AndReturn ( response ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# listener1 = self . conn . get_http_listener ( 'id' , 1 ) #NEWLINE# expected = slb . HTTPListener ( 'id' , 1 , 1 , 'stopped' ) #NEWLINE# self . assertEqual ( listener1 , expected ) #NEWLINE# self . mox . VerifyAll ( )