We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579d70e commit 381e131Copy full SHA for 381e131
tests/test_vagrant.py
@@ -16,6 +16,7 @@
16
17
from __future__ import print_function
18
import os
19
+import re
20
import shutil
21
import subprocess
22
import sys
@@ -668,6 +669,14 @@ def test_make_file_cm(test_dir):
668
669
assert read_fh.read() == "one\ntwo\n"
670
671
672
+def test_vagrant_version():
673
+ v = vagrant.Vagrant()
674
+ VAGRANT_VERSION = v.version()
675
+ sys.stdout.write(f"vagrant_version(): {VAGRANT_VERSION}\n")
676
+ version_result = bool(re.match("^[0-9.]+$", VAGRANT_VERSION))
677
+ assert version_result is True
678
+
679
680
def _execute_command_in_vm(v, command):
681
"""
682
Run command via ssh on the test vagrant box. Returns a tuple of the
0 commit comments