'Creates OperationContract for deleteLoadBalancer.
To verify the operation, we just check that the AWS resources
created by upsert_load_balancer are no longer visible on AWS.'

def delete_load_balancer(self):

    region = self.bindings['TEST_AWS_REGION']
    payload = self.agent.type_to_payload('deleteAmazonLoadBalancerDescription', {'credentials': self.bindings['SPINNAKER_AWS_ACCOUNT'], 'regions': [region], 'loadBalancerName': self.__use_lb_name})
    builder = aws.AwsPythonContractBuilder(self.aws_observer)
    builder.new_clause_builder('Load    Balancer    Removed').call_method(self.elb_client.describe_load_balancers, LoadBalancerNames=[self.__use_lb_name]).EXPECT(ov_factory.error_list_contains(jp.ExceptionMatchesPredicate((BotoCoreError, ClientError), 'LoadBalancerNotFound')))
    return st.OperationContract(self.new_post_operation(title='delete_amazon_load_balancer', data=payload, path='ops'), contract=builder.build())
