Test the decrypt_file method with mocked values.
(self, mock_decrypt_file)
| 120 | |
| 121 | @mock.patch("XOR_cipher.XORCipher.decrypt_file") |
| 122 | def test_decrypt_file(self, mock_decrypt_file): |
| 123 | """ |
| 124 | Test the decrypt_file method with mocked values. |
| 125 | """ |
| 126 | |
| 127 | file = mock.MagicMock() |
| 128 | key = mock.MagicMock() |
| 129 | XORCipher.decrypt_string = mock.MagicMock(return_value=True) |
| 130 | XORCipher.decrypt_string(file, key) |
| 131 | |
| 132 | XORCipher.decrypt_string.assert_called_with(file, key) |
| 133 | |
| 134 | |
| 135 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected