diff options
Diffstat (limited to 'setuptools/tests/test_dist.py')
-rw-r--r-- | setuptools/tests/test_dist.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/setuptools/tests/test_dist.py b/setuptools/tests/test_dist.py new file mode 100644 index 00000000..aedd2de4 --- /dev/null +++ b/setuptools/tests/test_dist.py @@ -0,0 +1,17 @@ + + +from setuptools import dist as dist_mod + + +class TestCheckNSP: + def test_namespace_package_implies_package(self): + """ + When a namespace package is declared, that declaration + implies the package of the same name, so it should + ensure that the name appears in the list of packages. + """ + attrs = dict(namespace_packages=['foo']) + dist_ob = dist_mod.Distribution(attrs) + for attr, value in attrs.items(): + dist_mod.check_nsp(dist_ob, attr, value) + assert 'foo' in dist_ob.packages |