You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
419 B

import argparse
from enough.common import options
def test_set_options():
parser = argparse.ArgumentParser()
assert options.set_options(parser) == parser
args = parser.parse_args([])
assert '/inventory/' in args.clouds
driver = 'DRIVER'
clouds = 'CLOUDS'
args = parser.parse_args(['--driver', driver, '--clouds', clouds])
assert args.clouds == clouds
assert args.driver == driver