#NEWLINE# @ mock_elb #NEWLINE# def test_delete_listener( ) : #NEWLINE# #INDENT# conn = boto . connect_elb ( ) #NEWLINE# zones = [ 'us-east-1a' , 'us-east-1b' ] #NEWLINE# ports = [ ( 80 , 8080 , 'http' ) , ( 443 , 8443 , 'tcp' ) ] #NEWLINE# conn . create_load_balancer ( 'my-lb' , zones , ports ) #NEWLINE# conn . delete_load_balancer_listeners ( 'my-lb' , [ 443 ] ) #NEWLINE# balancers = conn . get_all_load_balancers ( ) #NEWLINE# balancer = balancers [ 0 ] #NEWLINE# listener1 = balancer . listeners [ 0 ] #NEWLINE# listener1 . load_balancer_port . should . equal ( 80 ) #NEWLINE# listener1 . instance_port . should . equal ( 8080 ) #NEWLINE# listener1 . protocol . should . equal ( 'HTTP' ) #NEWLINE# balancer . listeners . should . have . length_of ( 1 )