Searched refs:mock_file (Results 1 – 3 of 3) sorted by relevance
161 mock.patch('builtins.open', mock.mock_open()) as mock_file:165 mock_file.assert_called_with('dummy/file.yaml', 'r', encoding='utf-8')
248 ) as mock_file, \259 print(mock_file.mock_calls)261 mock_file.assert_called_with(
399 ) as mock_file, \403 mock_file.assert_called_with(handler.log, 'w')406 mock_file.return_value.write.assert_has_calls(expected_handler_calls)411 assert mock_file.return_value.write.call_count < len(proc_stdout)413 assert mock_file.return_value.write.call_count == len(proc_stdout)