summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/finder_tests.py
blob: 9bbf85a58e2800e6e3e01d2a5204c7b3d878483a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# top-level.
# Package.
# module in pacakge.
# Package within a package.
# At least one tests with 'path'.
# Module that is not handled.

import unittest


class FinderTests(unittest.TestCase):

    """Basic tests for a finder to pass."""

    def test_module(self):
        # Test importing a top-level module.
        raise NotImplementedError

    def test_package(self):
        # Test importing a package.
        raise NotImplementedError

    def test_module_in_package(self):
        # Test importing a module contained within a package.
        # A value for 'path' should be used if for a meta_path finder.
        raise NotImplementedError

    def test_package_in_package(self):
        # Test importing a subpackage.
        # A value for 'path' should be used if for a meta_path finder.
        raise NotImplementedError

    def test_package_over_module(self):
        # Test that packages are chosen over modules.
        raise NotImplementedError

    def test_failure(self):
        # Test trying to find a module that cannot be handled.
        raise NotImplementedError