We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60fac4f commit c0c64bcCopy full SHA for c0c64bc
1 file changed
tests/test_cli.py
@@ -2,6 +2,8 @@
2
import subprocess
3
import sys
4
5
+import textile
6
+
7
def test_console_script():
8
command = [sys.executable, '-m', 'textile', 'README.textile']
9
try:
@@ -15,3 +17,13 @@ def test_console_script():
15
17
if type(result) == bytes:
16
18
result = result.decode('utf-8')
19
assert result == expect
20
21
+def test_version_string():
22
+ command = [sys.executable, '-m', 'textile', '-v']
23
+ try:
24
+ result = subprocess.check_output(command)
25
+ except AttributeError:
26
+ command[2] = 'textile.__main__'
27
+ result = subprocess.Popen(command,
28
+ stdout=subprocess.PIPE).communicate()[0]
29
+ assert result.strip() == textile.__version__
0 commit comments