def test_api(): """ Ensure the right thing comes back from the API. """ view = mock.MagicMock() editor = mock.MagicMock() mm = MicrobitMode(editor, view) api = mm.api() assert api == SHARED_APIS + MICROBIT_APIS
def test_api(): """ Ensure the right thing comes back from the API. """ view = mock.MagicMock() editor = mock.MagicMock() mm = MicrobitMode(editor, view) api = mm.api() assert api == SHARED_APIS + MICROBIT_APIS
def test_api(): """ Ensure the right thing comes back from the API. """ view = mock.MagicMock() editor = mock.MagicMock() mm = MicrobitMode(editor, view) api = mm.api() assert isinstance(api, list) assert api