From ef209a693c47689de0a05b5686a801b795cbe6d9 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 24 Jun 2021 07:00:44 -0400 Subject: [PATCH] agent: Remove second file from test_file_encrypted_in_place() --- .../infection_monkey/ransomware/test_ransomware_payload.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_payload.py b/monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_payload.py index 21205d319..d5a155f48 100644 --- a/monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_payload.py +++ b/monkey/tests/unit_tests/infection_monkey/ransomware/test_ransomware_payload.py @@ -85,17 +85,14 @@ def test_all_files_with_included_extension_encrypted(ransomware_target, ransomwa def test_file_encrypted_in_place(ransomware_target, ransomware_payload): - expected_all_zeros_inode = os.stat(ransomware_target / ALL_ZEROS_PDF).st_ino expected_test_keyboard_inode = os.stat(ransomware_target / TEST_KEYBOARD_TXT).st_ino ransomware_payload.run_payload() - actual_all_zeros_inode = os.stat(ransomware_target / with_extension(ALL_ZEROS_PDF)).st_ino actual_test_keyboard_inode = os.stat( ransomware_target / with_extension(TEST_KEYBOARD_TXT) ).st_ino - assert expected_all_zeros_inode == actual_all_zeros_inode assert expected_test_keyboard_inode == actual_test_keyboard_inode