def lc_command(argv=None, aws_config=None): from acli.commands import lc as command_lc lc_res = docopt(command_lc.__doc__, argv=argv) if any((lc_res.get('ls'), lc_res.get('list'))): asg.lc_list(aws_config) elif lc_res.get('info'): asg.lc_info(aws_config, lc_name=lc_res.get('<lc_name>'))
def test_lc_info_service(fake_lc): with pytest.raises(SystemExit): assert lc_info(aws_config=config, lc_name="test_lc")
def test_lc_info_service(fake_lc): with pytest.raises(SystemExit): assert lc_info(aws_config=config, lc_name='test_lc')