#NEWLINE# @ mock_elb #NEWLINE# def test_set_sslcertificate( ) : #NEWLINE# #INDENT# conn = boto . connect_elb ( ) #NEWLINE# zones = [ 'us-east-1a' , 'us-east-1b' ] #NEWLINE# ports = [ ( 443 , 8443 , 'tcp' ) ] #NEWLINE# conn . create_load_balancer ( 'my-lb' , zones , ports ) #NEWLINE# conn . set_lb_listener_SSL_certificate ( 'my-lb' , '443' , 'arn:certificate' ) #NEWLINE# balancers = conn . get_all_load_balancers ( ) #NEWLINE# balancer = balancers [ 0 ] #NEWLINE# listener1 = balancer . listeners [ 0 ] #NEWLINE# listener1 . load_balancer_port . should . equal ( 443 ) #NEWLINE# listener1 . instance_port . should . equal ( 8443 ) #NEWLINE# listener1 . protocol . should . equal ( 'TCP' ) #NEWLINE# listener1 . ssl_certificate_id . should . equal ( 'arn:certificate' )