agent: Update unit test for build_monkey_commandline

Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
This commit is contained in:
ilija-lazoroski 2021-06-22 17:10:49 +02:00 committed by Ilija Lazoroski
parent b65b26e856
commit 8ee1ce6706
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def test_build_monkey_commandline():
example_host = VictimHost(ip_addr="bla") example_host = VictimHost(ip_addr="bla")
example_host.set_default_server("101010") example_host.set_default_server("101010")
expected = "-p " + GUID + " -s 101010 -d 0 -l /home/bla -vp 80" expected = f"-p {GUID} -s 101010 -d 0 -l /home/bla -vp 80"
actual = build_monkey_commandline( actual = build_monkey_commandline(
target_host=example_host, depth=0, vulnerable_port="80", location="/home/bla" target_host=example_host, depth=0, vulnerable_port="80", location="/home/bla"
) )