Home
last modified time | relevance | path

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

/tools/acloud/internal/lib/
Dota_tools_test.py145 def _TestBuildSuperImage(self, mock_popen, mock_popen_object, argument
167 mock_popen.side_effect = _CaptureMiscInfo
183 mock_popen.assert_called_once()
184 self.assertEqual(mock_popen.call_args[0][0], expected_cmd)
190 def testBuildSuperImageSuccess(self, mock_popen): argument
192 self._TestBuildSuperImage(mock_popen, self._MockPopen(return_value=0))
195 def testBuildSuperImageTimeout(self, mock_popen): argument
197 self._TestBuildSuperImage(mock_popen, self._MockPopenTimeout(),
201 def testMakeDisabledVbmetaImageSuccess(self, mock_popen): argument
205 mock_popen.return_value = self._MockPopen(return_value=0)
[all …]
/tools/acloud/create/
Dgoldfish_local_image_local_instance_test.py85 def _SetUpMocks(self, mock_popen, mock_adb_tools, mock_utils, argument
102 mock_popen.side_effect = self._MockPopen
124 def testCreateAVDInBuildEnvironment(self, mock_popen, mock_adb_tools, argument
127 self._SetUpMocks(mock_popen, mock_adb_tools, mock_utils, mock_instance)
161 mock_popen.assert_called_once()
162 self.assertEqual(mock_popen.call_args[0][0],
174 def testCreateAVDFromSdkRepository(self, mock_popen, mock_adb_tools, argument
177 self._SetUpMocks(mock_popen, mock_adb_tools, mock_utils, mock_instance)
203 mock_popen.assert_called_once()
204 self.assertEqual(mock_popen.call_args[0][0],
[all …]