Searched refs:mock_file_open (Results 1 – 1 of 1) sorted by relevance
59 def test_load_aidegen_config(self, mock_file_exists, mock_file_open, argument65 self.assertFalse(mock_file_open.called)70 self.assertTrue(mock_file_open.called)77 def test_error_load_aidegen_config(self, mock_file_exists, mock_file_open, argument82 mock_file_open.side_effect = IOError()87 mock_file_open.reset()88 mock_file_open.side_effect = ValueError()96 mock_file_open, mock_json_dump): argument101 self.assertFalse(mock_file_open.called)108 mock_file_open, mock_json_dump): argument[all …]