Send 'selection' as the command name.
(self, sut: SelectionAPI, mock_conn: MagicMock)
| 25 | """get() メソッドのテスト""" |
| 26 | |
| 27 | def test_get_sends_selection_command(self, sut: SelectionAPI, mock_conn: MagicMock) -> None: |
| 28 | """Send 'selection' as the command name.""" |
| 29 | mock_conn.send_request.return_value = {} |
| 30 | |
| 31 | sut.get() |
| 32 | |
| 33 | assert mock_conn.send_request.call_args[0][0] == "selection" |
| 34 | |
| 35 | def test_get_sends_get_action(self, sut: SelectionAPI, mock_conn: MagicMock) -> None: |
| 36 | """Send action='get' to retrieve current selection.""" |