diff --git a/monkey/tests/unit_tests/infection_monkey/exploit/powershell_utils/test_utils.py b/monkey/tests/unit_tests/infection_monkey/exploit/powershell_utils/test_utils.py index 04e062f3b..7f56f8613 100644 --- a/monkey/tests/unit_tests/infection_monkey/exploit/powershell_utils/test_utils.py +++ b/monkey/tests/unit_tests/infection_monkey/exploit/powershell_utils/test_utils.py @@ -18,14 +18,6 @@ def test_get_credentials__empty_windows_false(): assert len(credentials) == 0 -def test_get_credentials__username_only_windows_false(): - credentials = utils.get_credentials(TEST_USERS, [], False) - - assert len(credentials) == 2 - assert (TEST_USERS[0], "") in credentials - assert (TEST_USERS[1], "") in credentials - - def test_get_credentials__username_only_windows_true(): credentials = utils.get_credentials(TEST_USERS, [], True) @@ -36,7 +28,15 @@ def test_get_credentials__username_only_windows_true(): assert (TEST_USERS[1], None) in credentials -def test_get_credentials__username_password(): +def test_get_credentials__username_only_windows_false(): + credentials = utils.get_credentials(TEST_USERS, [], False) + + assert len(credentials) == 2 + assert (TEST_USERS[0], "") in credentials + assert (TEST_USERS[1], "") in credentials + + +def test_get_credentials__username_password_windows_true(): credentials = utils.get_credentials(TEST_USERS, TEST_PASSWORDS, True) assert len(credentials) == 9