-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test_UltraScriptR.py
38 lines (31 loc) · 971 Bytes
/
Test_UltraScriptR.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
from UltraScriptR import unix
from UltraScriptR import powershell
from UltraScriptR import batch
from UltraScriptR import cmd
from UltraScriptR import append
def main():
test_unix()
test_powershell()
test_batch()
test_cmd()
test_append()
def test_unix():
fname0 = "test"
str0 = "echo hello from pytest"
assert unix(fname0, str0) == True, "Function is working"
def test_powershell():
fname1 = "test"
str1 = "echo hello from pytest"
assert powershell(fname1, str1) == True, "Function is working"
def test_batch():
fname2 = "test"
str2 = "echo hello from pytest"
assert batch(fname2, str2) == True, "Function is working"
def test_cmd():
fname3 = "test"
str3 = "echo hello from pytest"
assert cmd(fname3, str3) == True, "Function is working"
def test_append():
fname4 = "test"
str4 = "echo hello from pytest"
assert append(fname4, str4) == True, "Function is working"