| 1 |
# (C) Copyright 2005-2023 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 |
import os |
| 11 |
import unittest |
| 12 |
|
| 13 |
from traits.examples._etsdemo_info import introduction |
| 14 |
from traits.testing.optional_dependencies import requires_pkg_resources |
| 15 |
|
| 16 |
|
| 17 |
class TestETSDemoInfo(unittest.TestCase): |
| 18 |
@requires_pkg_resources |
| 19 |
def test_introduction(self): |
| 20 |
# input to introduction is currently just a placeholder |
| 21 |
response = introduction({}) |
| 22 |
self.assertTrue(os.path.exists(response['root'])) |