forked from p15670423/monkey
agent: Convert unit test_commands to pytest
This commit is contained in:
parent
4d71ed42a5
commit
24bb79af6a
|
@ -1,10 +1,7 @@
|
|||
import unittest
|
||||
|
||||
from infection_monkey.utils.commands import build_monkey_commandline_explicitly
|
||||
|
||||
|
||||
class TestHelpers(unittest.TestCase):
|
||||
def test_build_monkey_commandline_explicitly(self):
|
||||
def test_build_monkey_commandline_explicitly():
|
||||
test1 = [
|
||||
"-p",
|
||||
"101010",
|
||||
|
@ -23,8 +20,4 @@ class TestHelpers(unittest.TestCase):
|
|||
101010, "10.10.101.10", "127.127.127.127:5000", 0, "C:\\windows\\abc", 80
|
||||
)
|
||||
|
||||
self.assertEqual(test1, result1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
assert test1 == result1
|
||||
|
|
Loading…
Reference in New Issue