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.py173 def _TestBuildSuperImage(self, mock_popen, mock_popen_object, argument
195 mock_popen.side_effect = _CaptureMiscInfo
211 mock_popen.assert_called_once()
212 self.assertEqual(mock_popen.call_args[0][0], expected_cmd)
218 def testBuildSuperImageSuccess(self, mock_popen): argument
220 self._TestBuildSuperImage(mock_popen, self._MockPopen(return_value=0))
223 def testBuildSuperImageTimeout(self, mock_popen): argument
225 self._TestBuildSuperImage(mock_popen, self._MockPopenTimeout(),
229 def testMakeDisabledVbmetaImageSuccess(self, mock_popen): argument
233 mock_popen.return_value = self._MockPopen(return_value=0)
[all …]
/tools/acloud/create/
Dgoldfish_local_image_local_instance_test.py90 def _SetUpMocks(self, mock_popen, mock_utils, mock_instance): argument
108 mock_popen.side_effect = self._MockPopen
128 def testCreateAVDInBuildEnvironment(self, mock_popen, mock_utils, argument
131 self._SetUpMocks(mock_popen, mock_utils, mock_instance)
171 mock_popen.assert_called_once()
172 self.assertEqual(mock_popen.call_args[0][0],
182 def testCreateAVDFromSdkRepository(self, mock_popen, argument
185 self._SetUpMocks(mock_popen, mock_utils, mock_instance)
223 mock_popen.assert_called_once()
224 self.assertEqual(mock_popen.call_args[0][0],
[all …]