Allow one-character Param names

This is done explicitly to support the l/localityname attribute.
This commit is contained in:
Rob Crittenden
2010-02-12 11:01:23 -05:00
committed by Jason Gerard DeRose
parent b31f259b1a
commit 338578d10a
5 changed files with 4 additions and 12 deletions

View File

@@ -134,10 +134,6 @@ def test_parse_param_spec():
e = raises(TypeError, f, u'name?')
assert str(e) == TYPE_ERROR % ('spec', str, u'name?', unicode)
# Test that ValueError is raised if len(spec) < 2:
e = raises(ValueError, f, 'n')
assert str(e) == "spec must be at least 2 characters; got 'n'"
class DummyRule(object):
def __init__(self, error=None):