summaryrefslogtreecommitdiff
path: root/setuptools/tests
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2015-10-19 11:49:29 +0100
committerLuke Plant <L.Plant.98@cantab.net>2015-10-19 11:49:29 +0100
commit0b9fa15f89c18733d3b17d147a64a72134e0d8a3 (patch)
tree9d6ef6ecab1c902927fc6a95ba6e5142afb4cf77 /setuptools/tests
parentbfc525457225a7c0a45553d0fcf29592230e9855 (diff)
downloadpython-setuptools-git-0b9fa15f89c18733d3b17d147a64a72134e0d8a3.tar.gz
Pulled out some test code for re-use.
Diffstat (limited to 'setuptools/tests')
-rw-r--r--setuptools/tests/test_egg_info.py26
1 files changed, 14 insertions, 12 deletions
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py
index 8d831107..4977ea01 100644
--- a/setuptools/tests/test_egg_info.py
+++ b/setuptools/tests/test_egg_info.py
@@ -57,6 +57,20 @@ class TestEggInfo:
def test_egg_base_installed_egg_info(self, tmpdir_cwd, env):
self._create_project()
+ self._run_install_command(tmpdir_cwd, env)
+ actual = self._find_egg_info_files(env.paths['lib'])
+
+ expected = [
+ 'PKG-INFO',
+ 'SOURCES.txt',
+ 'dependency_links.txt',
+ 'entry_points.txt',
+ 'not-zip-safe',
+ 'top_level.txt',
+ ]
+ assert sorted(actual) == expected
+
+ def _run_install_command(self, tmpdir_cwd, env):
environ = os.environ.copy().update(
HOME=env.paths['home'],
)
@@ -76,18 +90,6 @@ class TestEggInfo:
if code:
raise AssertionError(data)
- actual = self._find_egg_info_files(env.paths['lib'])
-
- expected = [
- 'PKG-INFO',
- 'SOURCES.txt',
- 'dependency_links.txt',
- 'entry_points.txt',
- 'not-zip-safe',
- 'top_level.txt',
- ]
- assert sorted(actual) == expected
-
def _find_egg_info_files(self, root):
results = (
filenames