(self)
| 17 | expected_commands = [] |
| 18 | |
| 19 | def setUp(self): |
| 20 | self.communicate_mock = mock.patch('keepercommander.api.run_command').start() |
| 21 | self.communicate_mock.side_effect = TestRegister.communicate_success |
| 22 | self.communicate_mock = mock.patch('keepercommander.api.communicate_rest').start() |
| 23 | self.communicate_mock.side_effect = TestRegister.communicate_rest_success |
| 24 | TestRegister.expected_commands.clear() |
| 25 | |
| 26 | def tearDown(self): |
| 27 | mock.patch.stopall() |