diff options
author | Donald Stufft <donald@stufft.io> | 2013-11-19 07:06:03 -0800 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2013-11-19 07:06:03 -0800 |
commit | c9bad1efa3ed0184e01a5e4f7fbc33c99ac0d6c9 (patch) | |
tree | 6c7c60a9564b8a88b862dbd9384dc4b2f1079b45 /tests | |
parent | 68eb2c4a1b3977bd5583d7ae5a2157090dd6794c (diff) | |
parent | 52c92de4822d05767178a7b0f871b2330d09c0e0 (diff) | |
download | pip-c9bad1efa3ed0184e01a5e4f7fbc33c99ac0d6c9.tar.gz |
Merge pull request #1307 from dstufft/fix-entrypoints-parsing
Ignore leading and trailing whitespace
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_wheel.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit/test_wheel.py b/tests/unit/test_wheel.py index 88bb67d63..c96644575 100644 --- a/tests/unit/test_wheel.py +++ b/tests/unit/test_wheel.py @@ -11,6 +11,19 @@ from pip.index import PackageFinder from tests.lib import assert_raises_regexp +def test_get_entrypoints(tmpdir): + with open(str(tmpdir.join("entry_points.txt")), "w") as fp: + fp.write(""" + [console_scripts] + pip = pip.main:pip + """) + + assert wheel.get_entrypoints(str(tmpdir.join("entry_points.txt"))) == ( + {"pip": "pip.main:pip"}, + {}, + ) + + def test_uninstallation_paths(): class dist(object): def get_metadata_lines(self, record): |