mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
535 B
Python
20 lines
535 B
Python
6 years ago
|
# -*- 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
|
||
|
|
||
6 years ago
|
from ansible.cli.arguments import optparse_helpers as opt_help
|
||
6 years ago
|
|
||
|
|
||
|
class TestOptparseHelpersVersion:
|
||
|
|
||
|
def test_version(self):
|
||
|
ver = opt_help.version('ansible-cli-test')
|
||
|
assert 'ansible-cli-test' in ver
|
||
|
assert 'python version' in ver
|