def test_python_api(): """ Make sure the API definition is as expected. """ editor = mock.MagicMock() view = mock.MagicMock() pm = PythonMode(editor, view) result = pm.api() assert isinstance(result, list)
def test_python_api(): """ Make sure the API definition is as expected. """ editor = mock.MagicMock() view = mock.MagicMock() pm = PythonMode(editor, view) result = pm.api() assert result == SHARED_APIS + PYTHON3_APIS + PI_APIS