Path: blob/develop/tests/functional/elb/test_describe_instance_health.py
1567 views
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.1#2# Licensed under the Apache License, Version 2.0 (the "License"). You3# may not use this file except in compliance with the License. A copy of4# the License is located at5#6# http://aws.amazon.com/apache2.0/7#8# or in the "license" file accompanying this file. This file is9# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF10# ANY KIND, either express or implied. See the License for the specific11# language governing permissions and limitations under the License.12from awscli.testutils import BaseAWSCommandParamsTest131415class TestDescribeInstanceHealth(BaseAWSCommandParamsTest):1617prefix = 'elb describe-instance-health'1819def test_shorthand(self):20command = self.prefix + ' --load-balancer-name foo'21command += ' --instances id1 id2 id3'22expected_params = {23'LoadBalancerName': 'foo',24'Instances': [25{'InstanceId': 'id1'},26{'InstanceId': 'id2'},27{'InstanceId': 'id3'}28]29}30self.assert_params_for_cmd(command, expected_params)313233