1import sys
2
3from setuptools import depends
4
5
6class TestGetModuleConstant:
7
8    def test_basic(self):
9        """
10        Invoke get_module_constant on a module in
11        the test package.
12        """
13        mod_name = 'setuptools.tests.mod_with_constant'
14        val = depends.get_module_constant(mod_name, 'value')
15        assert val == 'three, sir!'
16        assert 'setuptools.tests.mod_with_constant' not in sys.modules
17