From 58fa3b44e5130b0cf79523c876f46a07734db7ba Mon Sep 17 00:00:00 2001 From: Pi Delport Date: Tue, 18 Apr 2017 17:10:47 +0200 Subject: Add an integration test to install pyuri This test is also a regression test for issue #1016. --- setuptools/tests/test_integration.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'setuptools/tests/test_integration.py') diff --git a/setuptools/tests/test_integration.py b/setuptools/tests/test_integration.py index cb62eb29..2acec91b 100644 --- a/setuptools/tests/test_integration.py +++ b/setuptools/tests/test_integration.py @@ -99,6 +99,21 @@ def test_python_novaclient(install_context): _install_one('python-novaclient', install_context, 'novaclient', 'base.py') + +def test_pyuri(install_context): + """ + Install the pyuri package (version 0.3.1 at the time of writing). + + This is also a regression test for issue #1016. + """ + _install_one('pyuri', install_context, 'pyuri', 'uri.py') + + pyuri = install_context.installed_projects['pyuri'] + + # The package data should be installed. + assert os.path.exists(os.path.join(pyuri.location, 'pyuri', 'uri.regex')) + + import re import subprocess import functools -- cgit v1.2.3