| 1 |
# (C) Copyright 2007-2025 Enthought, Inc., Austin, TX |
| 2 |
# All rights reserved. |
| 3 |
# |
| 4 |
# This software is provided without warranty under the terms of the BSD |
| 5 |
# license included in LICENSE.txt and may be redistributed only under |
| 6 |
# the conditions described in the aforementioned license. The license |
| 7 |
# is also available online at http://www.enthought.com/licenses/BSD.txt |
| 8 |
# |
| 9 |
# Thanks for using Enthought open source! |
| 10 |
|
| 11 |
import unittest |
| 12 |
|
| 13 |
import envisage.api as api |
| 14 |
import envisage.ids as ids |
| 15 |
|
| 16 |
|
| 17 |
class TestApi(unittest.TestCase): |
| 18 |
"""Test for API""" |
| 19 |
|
| 20 |
def test_import(self): |
| 21 |
self.assertEqual(api.BINDINGS, ids.BINDINGS) |
| 22 |
self.assertEqual(api.COMMANDS, ids.COMMANDS) |
| 23 |
self.assertEqual(api.PREFERENCES, ids.PREFERENCES) |
| 24 |
self.assertEqual( |
| 25 |
api.PREFERENCES_CATEGORIES, ids.PREFERENCES_CATEGORIES |
| 26 |
) |
| 27 |
self.assertEqual(api.PREFERENCES_PANES, ids.PREFERENCES_PANES) |
| 28 |
self.assertEqual(api.SERVICE_OFFERS, ids.SERVICE_OFFERS) |
| 29 |
self.assertEqual(api.TASKS, ids.TASKS) |
| 30 |
self.assertEqual(api.TASK_EXTENSIONS, ids.TASK_EXTENSIONS) |