def test_detach_parser_prog(self): parser = detach_parser(mock.Mock()) assert "detach" == parser.prog
def test_detach_parser_optionals_title(self): parser = detach_parser(mock.Mock()) assert "Flags" == parser._optionals.title
def test_detach_parser_usage(self): parser = detach_parser(mock.Mock()) assert "ua detach [flags]" == parser.usage