From 92293e601c307e335911cb6d536b68f7ab7e5771 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 3 Jun 2021 11:04:16 -0400 Subject: [PATCH] island: Add unit test for MONKEY_ISLAND_ABS_PATH If the consts.py is moved, MONKEY_ISLAND_ABS_PATH may be incorrect. This unit test guards against the introduction of a bug if consts.py is moved. --- .../unit_tests/monkey_island/cc/server_utils/test_consts.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 monkey/tests/unit_tests/monkey_island/cc/server_utils/test_consts.py diff --git a/monkey/tests/unit_tests/monkey_island/cc/server_utils/test_consts.py b/monkey/tests/unit_tests/monkey_island/cc/server_utils/test_consts.py new file mode 100644 index 000000000..eeb600b9b --- /dev/null +++ b/monkey/tests/unit_tests/monkey_island/cc/server_utils/test_consts.py @@ -0,0 +1,5 @@ +from monkey_island.cc.server_utils import consts + + +def test_monkey_island_abs_path(): + assert consts.MONKEY_ISLAND_ABS_PATH.endswith("monkey_island")