-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtest_a_tools.py
82 lines (44 loc) · 1.62 KB
/
test_a_tools.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# -*- coding: utf-8 -*-
import os
from iscc_sdk import tools
def test_install():
assert tools.install() is True
def test_system_tag():
assert "64" in tools.system_tag()
def test_is_installed():
assert tools.is_installed(tools.ffmpeg_bin())
def test_exiv2_download_url():
assert "exiv" in tools.exiv2_download_url()
def test_exiv2_bin():
bpath = tools.exiv2_bin()
assert os.path.basename(bpath).startswith("exiv2")
def test_exiv2json_bin():
assert "exiv2" in tools.exiv2json_bin()
def test_fpcalc_downlod_url():
assert "fpcalc" in tools.fpcalc_download_url()
def test_ffmpeg_download_url():
assert "ffmpeg" in tools.ffmpeg_download_url()
def test_ffmpeg_bin():
assert "ffmpeg" in tools.ffmpeg_bin()
def test_tika_download_url():
assert "tika" in tools.tika_download_url()
def test_tika_bin():
assert "tika" in tools.tika_bin()
def test_java_version_info():
vi = tools.java_version_info().lower()
assert "java" in vi or "openjdk" in vi
assert len(vi.splitlines()) == 1
def test_tika_version_info():
assert tools.TIKA_VERSION in tools.tika_version_info()
def test_ffmpeg_version_info():
assert tools.FFMPEG_VERSION in tools.ffmpeg_version_info()
def test_fpcalc_version_info():
assert tools.FPCALC_VERSION in tools.fpcalc_version_info()
def test_exiv2_version_info():
assert "exiv2" in tools.exiv2_version_info().lower()
def test_ipfs_download_url():
assert "ipfs" in tools.ipfs_download_url()
def test_ipfs_bin():
assert os.path.exists(tools.ipfs_bin())
def test_ipfs_version_info():
assert "ipfs version" in tools.ipfs_version_info()