(self)
| 18 | expected_commands = [] |
| 19 | |
| 20 | def setUp(self): |
| 21 | self.communicate_mock = mock.patch('keepercommander.api.communicate').start() |
| 22 | self.communicate_mock.side_effect = KeeperApiHelper.communicate_command |
| 23 | self.communicate_mock = mock.patch('keepercommander.api.communicate_rest').start() |
| 24 | self.communicate_mock.side_effect = TestRecord.communicate_rest_success |
| 25 | TestRecord.expected_commands.clear() |
| 26 | |
| 27 | def tearDown(self): |
| 28 | mock.patch.stopall() |