Test the __init__ method with commented values in the event one needs to instantiate mocked objects on the method.
(self, mock__init__)
| 35 | |
| 36 | @mock.patch("XOR_cipher.XORCipher.__init__") |
| 37 | def test__init__(self, mock__init__): |
| 38 | """ |
| 39 | Test the __init__ method with commented values in the event |
| 40 | one needs to instantiate mocked objects on the method. |
| 41 | """ |
| 42 | |
| 43 | # self.XORCipher_1.__init__ = mock.MagicMock() |
| 44 | XORCipher.__init__ = mock.MagicMock() |
| 45 | |
| 46 | # self.XORCipher_1.__init__(1) |
| 47 | XORCipher.__init__() |
| 48 | |
| 49 | # self.XORCipher_1.__init__.assert_called_with(1) |
| 50 | XORCipher.__init__.assert_called() |
| 51 | |
| 52 | @mock.patch("XOR_cipher.XORCipher.encrypt") |
| 53 | def test_encrypt(self, mock_encrypt): |