diff options
Diffstat (limited to 'Lib/importlib/test/finder_tests.py')
-rw-r--r-- | Lib/importlib/test/finder_tests.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Lib/importlib/test/finder_tests.py b/Lib/importlib/test/finder_tests.py new file mode 100644 index 0000000..9bbf85a --- /dev/null +++ b/Lib/importlib/test/finder_tests.py @@ -0,0 +1,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 |