def test_pgzero_mode(): """ Sanity check for setting up of the mode. """ editor = mock.MagicMock() view = mock.MagicMock() pm = PyGameZeroMode(editor, view) assert pm.name == "Pygame Zero" assert pm.description is not None assert pm.icon == "pygamezero" assert pm.is_debugger is False assert pm.editor == editor assert pm.view == view assert pm.builtins actions = pm.actions() assert len(actions) == 5 assert actions[0]["name"] == "play" assert actions[0]["handler"] == pm.play_toggle assert actions[1]["name"] == "images" assert actions[1]["handler"] == pm.show_images assert actions[2]["name"] == "fonts" assert actions[2]["handler"] == pm.show_fonts assert actions[3]["name"] == "sounds" assert actions[3]["handler"] == pm.show_sounds assert actions[4]["name"] == "music" assert actions[4]["handler"] == pm.show_music
def test_pgzero_mode(): """ Sanity check for setting up of the mode. """ editor = mock.MagicMock() view = mock.MagicMock() pm = PyGameZeroMode(editor, view) assert pm.name == 'Pygame Zero' assert pm.description is not None assert pm.icon == 'pygamezero' assert pm.is_debugger is False assert pm.editor == editor assert pm.view == view assert pm.builtins actions = pm.actions() assert len(actions) == 5 assert actions[0]['name'] == 'play' assert actions[0]['handler'] == pm.play_toggle assert actions[1]['name'] == 'images' assert actions[1]['handler'] == pm.show_images assert actions[2]['name'] == 'fonts' assert actions[2]['handler'] == pm.show_fonts assert actions[3]['name'] == 'sounds' assert actions[3]['handler'] == pm.show_sounds assert actions[4]['name'] == 'music' assert actions[4]['handler'] == pm.show_music
def test_pgzero_mode(): """ Sanity check for setting up of the mode. """ editor = mock.MagicMock() view = mock.MagicMock() pm = PyGameZeroMode(editor, view) assert pm.name == 'Pygame Zero' assert pm.description is not None assert pm.icon == 'pygamezero' assert pm.is_debugger is False assert pm.editor == editor assert pm.view == view assert pm.builtins actions = pm.actions() assert len(actions) == 3 assert actions[0]['name'] == 'play' assert actions[0]['handler'] == pm.play_toggle assert actions[1]['name'] == 'images' assert actions[1]['handler'] == pm.show_images assert actions[2]['name'] == 'sounds' assert actions[2]['handler'] == pm.show_sounds