Commit ef428d72 authored by Jason R. Coombs's avatar Jason R. Coombs

Move tests to be adjacent with other parsing tests.

parent 1f953c4c
......@@ -250,6 +250,11 @@ class TestEntryPoints:
assert ep.attrs == ("foo",)
assert ep.extras == ()
# plus in the name
spec = "html+mako = mako.ext.pygmentplugin:MakoHtmlLexer"
ep = EntryPoint.parse(spec)
assert ep.name == 'html+mako'
def testRejects(self):
for ep in [
"foo", "x=1=2", "x=a:b:c", "q=x/na", "fez=pish:tush-z", "x=f[a]>2",
......
......@@ -109,11 +109,3 @@ class TestIndependence:
)
cmd = [sys.executable, '-c', '; '.join(lines)]
subprocess.check_call(cmd)
class TestEntryPoint:
"""Tests that ensure EntryPoint behaviour doesn't regress."""
def test_accepts_old_entry_points(self):
"""https://bitbucket.org/pypa/setuptools/issue/323/install-issues-with-102"""
entry_point_string = 'html+mako = mako.ext.pygmentplugin:MakoHtmlLexer'
pkg_resources.EntryPoint.parse(entry_point_string)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment