Lines Matching refs:Mock
100 mock_cmd_exec = mock.Mock(spec=command_executer.CommandExecuter)
101 mock_logger = mock.Mock(spec=logger.Logger)
157 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, '', ''))
167 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, '', ''))
182 self.dw.RunCommandOnDut = mock.Mock(return_value=(1, '', 'Error.'))
198 self.dw.RunCommandOnDut = mock.Mock(return_value=(1, '', 'Error.'))
214 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, '', ''))
227 self.dw.RunCommandOnDut = mock.Mock(
235 self.dw.RunCommandOnDut = mock.Mock(
266 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, '', ''))
272 self.dw.RunCommandOnDut = mock.Mock(side_effect=AssertionError)
279 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, 'armv7l', ''))
287 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, 'aarch64', ''))
295 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, 'x86_64', ''))
304 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, 'x86_64', ''))
311 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
322 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
333 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
344 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
355 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
367 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
385 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
403 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
421 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
447 self.dw.RunCommandOnDut = mock.Mock(
457 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
473 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, '39000', ''))
493 self.dw.RunCommandOnDut = mock.Mock(side_effect=[(0, '41000',
512 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, '41000', ''))
531 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
551 self.dw.RunCommandOnDut = mock.Mock(side_effect=[
574 self.dw.RunCommandOnDut = mock.Mock(side_effect=[(1, '', 'Thermal error')])
592 self.dw.RunCommandOnDut = mock.Mock(side_effect=[(1, '\n',
605 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, '', ''))
611 self.dw.RunCommandOnDut = mock.Mock(return_value=(0, '', ''))
624 self.dw.RunCommandOnDut = mock.Mock(return_value=FakeRunner)
625 self.dw.KerncmdUpdateNeeded = mock.Mock(return_value=True)
626 self.dw.UpdateKerncmdIntelPstate = mock.Mock(return_value=0)
627 self.dw.DisableASLR = mock.Mock(return_value=0)
628 self.dw.SetupCpuUsage = mock.Mock(return_value=0)
629 self.dw.SetupCpuFreq = mock.Mock(return_value=0)
630 self.dw.GetCpuOnline = mock.Mock(return_value={0: 1, 1: 1, 2: 0})
631 self.dw.SetCpuGovernor = mock.Mock(return_value=0)
632 self.dw.DisableTurbo = mock.Mock(return_value=0)
633 self.dw.StopUI = mock.Mock(return_value=0)
634 self.dw.StartUI = mock.Mock(return_value=0)
635 self.dw.WaitCooldown = mock.Mock(return_value=0)
636 self.dw.DecreaseWaitTime = mock.Mock(return_value=0)
664 self.dw.GetCpuOnline = mock.Mock(return_value={0: 0, 1: 1})
683 self.dw.SetupCpuUsage = mock.Mock(side_effect=RuntimeError())