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

Refactor for clarity

parent 1524a98d
......@@ -296,9 +296,8 @@ class TestEntryPoints:
assert ep.name == 'html+mako'
def testRejects(self):
for ep in [
"foo", "x=a:b:c", "q=x/na", "fez=pish:tush-z", "x=f[a]>2",
]:
specs = "foo", "x=a:b:c", "q=x/na", "fez=pish:tush-z", "x=f[a]>2"
for ep in specs:
try: EntryPoint.parse(ep)
except ValueError: pass
else: raise AssertionError("Should've been bad", ep)
......
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