#NEWLINE# @ mock_elb #NEWLINE# def test_create_lb_cookie_stickiness_policy( ) : #NEWLINE# #INDENT# conn = boto . connect_elb ( ) #NEWLINE# ports = [ ( 80 , 8080 , 'http' ) , ( 443 , 8443 , 'tcp' ) ] #NEWLINE# lb = conn . create_load_balancer ( 'my-lb' , [ ] , ports ) #NEWLINE# cookie_expiration_period = 60 #NEWLINE# policy_name = 'LBCookieStickinessPolicy' #NEWLINE# lb . create_cookie_stickiness_policy ( cookie_expiration_period , policy_name ) #NEWLINE# lb = conn . get_all_load_balancers ( ) [ 0 ] #NEWLINE# cookie_expiration_period_response_str = lb . policies . lb_cookie_stickiness_policies [ 0 ] . cookie_expiration_period #NEWLINE# int ( cookie_expiration_period_response_str ) . should . equal ( cookie_expiration_period ) #NEWLINE# lb . policies . lb_cookie_stickiness_policies [ 0 ] . policy_name . should . equal ( policy_name )