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.
 
 
 
 
 

12 lines
305 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([])
driver = 'libvirt'
args = parser.parse_args(['--driver', driver])
assert args.driver == driver