Files
deb-python-dcos/tests/test_options.py
José Armando García Sancio 5a340cba96 Move modules from dcos.api to dcos
2015-04-29 22:32:54 -07:00

22 lines
573 B
Python

from dcos import options
def test_extend_usage_docopt():
command_summaries = [
('first', 'first summary'),
('second', ' second summary '),
('third', 'third summary\n')
]
expected = """
\tfirst \tfirst summary
\tsecond \tsecond summary
\tthird \tthird summary"""
assert options.make_command_summary_string(command_summaries) == expected
def test_make_generic_usage_message():
assert (options.make_generic_usage_message('some generic message') ==
'Unknown option\nsome generic message')