def route53_command(argv=None, aws_config=None): from acli.commands import route53 as command_route53 route53_res = docopt(command_route53.__doc__, argv=argv) if any((route53_res.get('ls'), route53_res.get('list'))): route53.route53_list(aws_config) elif route53_res.get('info'): route53.route53_info(aws_config, zone_id=route53_res.get('<zone_id>'))
def test_elb_list_service(route53_zone): with pytest.raises(SystemExit): assert route53_list(aws_config=config)