def elb_command(argv=None, aws_config=None): from acli.commands import elb as command_elb elb_res = docopt(command_elb.__doc__, argv=argv) if any((elb_res.get('ls'), elb_res.get('list'))): elb.elb_list(aws_config) elif elb_res.get('info'): elb.elb_info(aws_config, elb_name=elb_res.get('<elb_name>'))
def test_elb_info_service(elb_instances): with pytest.raises(SystemExit): assert elb_info(aws_config=config, elb_name='my-lb')