Home
last modified time | relevance | path

Searched refs:mock_popen (Results 1 – 4 of 4) sorted by relevance

/tools/acloud/internal/lib/
Dota_tools_test.py166 def _TestBuildSuperImage(self, mock_popen, mock_popen_object, argument
188 mock_popen.side_effect = _CaptureMiscInfo
204 mock_popen.assert_called_once()
205 self.assertEqual(mock_popen.call_args[0][0], expected_cmd)
211 def testBuildSuperImageSuccess(self, mock_popen): argument
213 self._TestBuildSuperImage(mock_popen, self._MockPopen(return_value=0))
216 def testBuildSuperImageTimeout(self, mock_popen): argument
218 self._TestBuildSuperImage(mock_popen, self._MockPopenTimeout(),
222 def testMakeDisabledVbmetaImageSuccess(self, mock_popen): argument
226 mock_popen.return_value = self._MockPopen(return_value=0)
[all …]
/tools/acloud/create/
Dgoldfish_local_image_local_instance_test.py96 def _SetUpMocks(self, mock_popen, mock_utils, mock_instance, argument
115 mock_popen.side_effect = self._MockPopen
180 def testCreateAVDInBuildEnvironment(self, mock_gf_utils, mock_popen, argument
183 self._SetUpMocks(mock_popen, mock_utils, mock_instance, mock_gf_utils)
216 mock_popen.assert_called_once()
217 self.assertEqual(mock_popen.call_args[0][0],
229 def testCreateAVDFromSdkRepository(self, mock_gf_utils, mock_popen, argument
232 self._SetUpMocks(mock_popen, mock_utils, mock_instance, mock_gf_utils)
265 mock_popen.assert_called_once()
266 self.assertEqual(mock_popen.call_args[0][0],
[all …]
Dlocal_image_local_instance_test.py469 def testLaunchCVD(self, mock_popen): argument
484 mock_popen.return_value = mock_proc
494 mock_popen.assert_called_once()
498 def testLaunchCVDFailure(self, mock_popen): argument
502 mock_popen.return_value = mock_proc
514 def testLaunchCVDTimeout(self, mock_popen, mock_list_instance): argument
518 mock_popen.return_value = mock_proc
/tools/asuite/atest/
Datest_utils_unittest.py532 def test_get_manifest_branch(self, mock_env, mock_popen): argument
535 process = mock_popen.return_value