Send 'playmode' as the command name.
(self, sut: EditorAPI, mock_conn: MagicMock)
| 25 | """play() メソッドのテスト""" |
| 26 | |
| 27 | def test_play_sends_playmode_command(self, sut: EditorAPI, mock_conn: MagicMock) -> None: |
| 28 | """Send 'playmode' as the command name.""" |
| 29 | mock_conn.send_request.return_value = {} |
| 30 | |
| 31 | sut.play() |
| 32 | |
| 33 | assert mock_conn.send_request.call_args[0][0] == "playmode" |
| 34 | |
| 35 | def test_play_sends_enter_action(self, sut: EditorAPI, mock_conn: MagicMock) -> None: |
| 36 | """Send action='enter' to enter play mode.""" |