Lines Matching refs:mock
7 from unittest.mock import patch, call
70 mock = cpd.return_value
71 mock.flash_status.return_value = 0
72 mock.wait_for_flash_status_ok.return_value = 0
73 mock.swid.return_value = 0
102 mock.connect.assert_called_once()
105 mock.wait_for_flash_status_ok.assert_called_with(timeout)
106 mock.swid.assert_called_once()
107 mock.enter_pre_operational.assert_called_once()
108 mock.zephyr_confirm_program.assert_called_once()
109 mock.clear_program.assert_not_called()
110 mock.stop_program.assert_not_called()
111 mock.download.assert_not_called()
112 mock.start_program.assert_not_called()
113 mock.wait_for_bootup.assert_not_called()
115 mock.enter_pre_operational.assert_called()
116 mock.wait_for_flash_status_ok.assert_called_with(timeout)
117 mock.swid.assert_called()
118 mock.stop_program.assert_called_once()
119 mock.clear_program.assert_called_once()
120 mock.download.assert_called_once_with(RC_KERNEL_BIN)
121 mock.start_program.assert_called_once()
122 mock.wait_for_bootup.assert_called_once_with(timeout)
124 mock.zephyr_confirm_program.assert_called_once()
126 mock.zephyr_confirm_program.assert_not_called()
128 mock.disconnect.assert_called_once()