Home
last modified time | relevance | path

Searched refs:assert_called (Results 1 – 25 of 29) sorted by relevance

12

/external/autotest/server/hosts/
Dcros_host_unittest.py160 host._servo_host.get_servo_state.assert_called()
170 host._servo_host.get_servo_state.assert_called()
187 host._servo_host.get_servo_state.assert_called()
231 host.servo.get_power_state_controller.return_value.power_on.assert_called()
244 host.servo.get_power_state_controller.return_value.power_on.assert_called()
Djetstream_host_unittest.py31 mock_exception_logging.assert_called()
Dcros_label_unittest.py323 host.servo.get_servo_version.assert_called()
/external/chromium-trace/catapult/devil/devil/android/
Dcpu_temperature_test.py108 self.mock_device.ReadFile.assert_called()
117 self.mock_device.ReadFile.assert_called()
126 self.mock_device.ReadFile.assert_called()
/external/toolchain-utils/cros_utils/
Ddevice_setup_utils_unittest.py498 self.dw.RunCommandOnDut.assert_called()
500 mock_sleep.assert_called()
516 self.dw.RunCommandOnDut.assert_called()
518 mock_sleep.assert_called()
539 self.dw.RunCommandOnDut.assert_called()
541 mock_sleep.assert_called()
564 mock_sleep.assert_called()
673 self.dw.SetCpuGovernor.assert_called()
/external/autotest/server/cros/crosperf/
Ddevice_setup_utils_unittest.py629 mock_run_command.assert_called()
631 mock_sleep.assert_called()
652 mock_run_command.assert_called()
654 mock_sleep.assert_called()
681 mock_run_command.assert_called()
683 mock_sleep.assert_called()
713 mock_sleep.assert_called()
873 mock_set_cpu_governor.assert_called()
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_browser.py163 fopen.assert_called()
215 fopen.assert_called()
216 goto.assert_called()
Dtest_colorizer.py338 mock_recmain.assert_called()
348 mock_recmain.assert_called()
Dtest_codecontext.py354 mock_update.assert_called()
/external/tensorflow/tensorflow/python/tpu/
Dasync_checkpoint_test.py145 mock_listener.before_save.assert_called()
146 mock_listener.after_save.assert_called()
/external/toolchain-utils/llvm_tools/
Dupdate_chromeos_llvm_hash_unittest.py253 mock_islink.assert_called()
257 mock_command_output.assert_called()
297 mock_islink.assert_called()
301 mock_command_output.assert_called()
/external/pigweed/pw_rpc/py/tests/console_tools/
Dconsole_tools_test.py61 self._while_expired.assert_called()
80 self._expiration.assert_called()
/external/autotest/server/cros/faft/
Dfirmware_test_unittest.py205 self.test.assert_test_image_in_usb_disk.assert_called()
206 self.test.set_servo_v4_role_to_snk.assert_called()
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestasync.py750 mock.async_method.assert_called()
761 mock.async_method.assert_called()
779 self.mock.assert_called()
794 mock.async_method.assert_called()
813 self.mock.assert_called()
821 self.mock.assert_called()
Dtestmock.py402 Mock().assert_called()
404 Mock(name="test_name").assert_called()
1628 m.hello.assert_called()
1630 m.hello.assert_called()
1633 m.hello.assert_called()
Dtestpatch.py960 self.assertRaises(AssertionError, function.assert_called)
965 function.assert_called()
/external/python/mock/
DCHANGELOG.rst106 assert_called, assert_not_called, and assert_called_once.
131 - Issue #26323: Add Mock.assert_called() and Mock.assert_called_once()
/external/python/mock/mock/
Dmock.py289 def assert_called(*args, **kwargs): function
290 return mock.assert_called(*args, **kwargs)
327 funcopy.assert_called = assert_called
901 def assert_called(_mock_self): member in NonCallableMock
/external/python/cpython3/Lib/unittest/
Dmock.py201 def assert_called(*args, **kwargs): function
202 return mock.assert_called(*args, **kwargs)
237 funcopy.assert_called = assert_called
870 def assert_called(self): member in NonCallableMock
/external/toolchain-utils/crosperf/
Dexperiment_runner_unittest.py483 mock_open().write.assert_called()
/external/python/mock/mock/tests/
Dtestmock.py1547 m.hello.assert_called()
1549 m.hello.assert_called()
1552 m.hello.assert_called()
Dtestpatch.py950 self.assertRaises(AssertionError, function.assert_called)
955 function.assert_called()
/external/python/cpython3/Misc/NEWS.d/
D3.6.0b2.rst267 unittest.mock Mock autospec functions now properly support assert_called,
/external/python/cpython3/Doc/library/
Dunittest.mock.rst289 .. method:: assert_called()
296 >>> mock.method.assert_called()
2399 'assert_called',
/external/python/cpython3/Doc/whatsnew/
D3.6.rst1656 * Two new methods, :meth:`Mock.assert_called()
1657 <unittest.mock.Mock.assert_called>` and :meth:`Mock.assert_called_once()

12