2018-12-19 09:28:33 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright: (c) 2018, Ansible Project
|
|
|
|
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
|
|
|
|
|
|
# Make coding more python3-ish
|
|
|
|
from __future__ import (absolute_import, division)
|
|
|
|
__metaclass__ = type
|
|
|
|
|
|
|
|
import pytest
|
|
|
|
|
2019-04-23 20:54:39 +02:00
|
|
|
from ansible.cli.arguments import option_helpers as opt_help
|
2018-12-19 09:28:33 +01:00
|
|
|
|
|
|
|
|
|
|
|
class TestOptparseHelpersVersion:
|
|
|
|
|
|
|
|
def test_version(self):
|
|
|
|
ver = opt_help.version('ansible-cli-test')
|
|
|
|
assert 'ansible-cli-test' in ver
|
|
|
|
assert 'python version' in ver
|