diff options
Diffstat (limited to 'setuptools/tests')
-rw-r--r-- | setuptools/tests/test_easy_install.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 8611dc16..f9073574 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -45,14 +45,13 @@ __metaclass__ = type class FakeDist: + project_name = 'project' + def get_entry_map(self, group): if group != 'console_scripts': return {} return {str('name'): 'ep'} - def as_requirement(self): - return 'spec' - SETUP_PY = DALS(""" from setuptools import setup @@ -76,7 +75,7 @@ class TestEasyInstallTest: args = next(ei.ScriptWriter.get_args(dist)) name, script = itertools.islice(args, 2) assert script.startswith(header) - assert "'spec'" in script + assert "'project'" in script assert "'console_scripts'" in script assert "'name'" in script assert re.search( |