borgmatic/tests/unit/commands/completion/test_bash.py

18 lines
431 B
Python
Raw Normal View History

from flexmock import flexmock
from borgmatic.commands.completion import bash as module
def test_parser_flags_flattens_and_joins_flags():
assert (
module.parser_flags(
flexmock(
_actions=[
flexmock(option_strings=['--foo', '--bar']),
flexmock(option_strings=['--baz']),
]
)
)
== '--foo --bar --baz'
)