aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-04-19 03:00:23 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-04-19 03:00:23 +0000
commit2781bdb0a4d3802719f4dc6f862bb7e8cfbaed41 (patch)
treeb3f808831ab344b3ad678db5a41978b7f63ee367 /tests/unit
parentb40f4ca8366037551d17ce93f892caba464f9bc0 (diff)
parent2589625ff30b794f6a427e040c0287205311dec5 (diff)
Merge "Add E release development version."
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/cli/options_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/cli/options_test.py b/tests/unit/cli/options_test.py
index 9dbbe6f3..d7c0f700 100644
--- a/tests/unit/cli/options_test.py
+++ b/tests/unit/cli/options_test.py
@@ -8,6 +8,7 @@
##############################################################################
import pytest
+import re
import sys
from click.testing import CliRunner
@@ -26,7 +27,7 @@ class TestClass(object):
def test_version(self, runner):
result = runner.invoke(cli, ['--version'])
- assert 'dev' in result.output
+ assert re.search(r'\d+\.\d+\.\d+', result.output)
def test_debug(self, runner):
runner.invoke(cli, ['-d'])