File: test_depends.py

package info (click to toggle)
python-setuptools 33.1.1-1~bpo8%2B1
  • links: PTS
  • area: main
  • in suites: jessie-backports
  • size: 2,852 kB
  • sloc: python: 19,087; ansic: 195; makefile: 97; xml: 14
file content (16 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import sys

from setuptools import depends


class TestGetModuleConstant:

	def test_basic(self):
		"""
		Invoke get_module_constant on a module in
		the test package.
		"""
		mod_name = 'setuptools.tests.mod_with_constant'
		val = depends.get_module_constant(mod_name, 'value')
		assert val == 'three, sir!'
		assert 'setuptools.tests.mod_with_constant' not in sys.modules