Lines Matching refs:mock_popen
166 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)
239 mock_popen.assert_called_once()
240 self.assertEqual(mock_popen.call_args[0][0], expected_cmd)
241 self.assertFalse(mock_popen.call_args[1]["env"])
244 def _TestMkCombinedImg(self, mock_popen, mock_popen_object, argument
267 mock_popen.side_effect = _CaptureSystemQemuConfig
285 mock_popen.assert_called_once()
286 self.assertEqual(mock_popen.call_args[0][0], expected_cmd)
287 self.assertEqual(mock_popen.call_args[1].get("env"), expected_env)
293 def testMkCombinedImgSuccess(self, mock_popen): argument
295 return self._TestMkCombinedImg(mock_popen,
299 def testMkCombinedImgFailure(self, mock_popen): argument
301 return self._TestMkCombinedImg(mock_popen,