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.
This commit is contained in:
Mike Salvatore 2021-06-03 11:04:16 -04:00
parent c40af5073b
commit 92293e601c
1 changed files with 5 additions and 0 deletions

View File

@ -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")