# Path: dcos_launch/cli.py
# def main(argv=None):
#     args = docopt(__doc__, argv=argv, version='dcos-launch {}'.format(dcos_launch.VERSION))
# 
#     try:
#         return do_main(args)
#     except dcos_launch.util.LauncherError as ex:
#         print('DC/OS Launch encountered an error!')
#         print(repr(ex))
#         return 1


import re
import shutil
import pytest
from dcos_launch.cli import main
from docopt import DocoptExit



def test_no_files_specified(tmpdir, aws_cf_config_path):
    """Ensure typical usage works without specifying config and info file paths
    """
    with tmpdir.as_cwd():
        shutil.copyfile(aws_cf_config_path, str(tmpdir.join('config.yaml')))

# Path: dcos_launch/cli.py
# def main(argv=None):
#     args = docopt(__doc__, argv=argv, version='dcos-launch {}'.format(dcos_launch.VERSION))
# 
#     try:
#         return do_main(args)
#     except dcos_launch.util.LauncherError as ex:
#         print('DC/OS Launch encountered an error!')
#         print(repr(ex))
#         return 1


# Path: test/test_cli.py
import re
import shutil
import pytest
from dcos_launch.cli import main
from docopt import DocoptExit




def test_no_files_specified(tmpdir, aws_cf_config_path):
    """Ensure typical usage works without specifying config and info file paths
    """
    with tmpdir.as_cwd():
        shutil.copyfile(aws_cf_config_path, str(tmpdir.join('config.yaml')))

        assert main(['create']) == 0