Merge lp:~ack/txaws/parameter-validator into lp:txaws
Proposed by
Alberto Donato
Status: | Merged |
---|---|
Approved by: | Jamu Kakar |
Approved revision: | 90 |
Merged at revision: | 90 |
Proposed branch: | lp:~ack/txaws/parameter-validator |
Merge into: | lp:txaws |
Diff against target: |
67 lines (+29/-2) 2 files modified
txaws/server/schema.py (+7/-2) txaws/server/tests/test_schema.py (+22/-0) |
To merge this branch: | bzr merge lp:~ack/txaws/parameter-validator |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jamu Kakar | Approve | ||
Review via email: mp+68823@code.launchpad.net |
Description of the change
This adds an optional validator argument to Parameter, to provide custom validation.
To post a comment you must log in.
[1]
+ def test_validator_ valid(self) :
+ """
+ L{Parameter.coerce} raises an error if the validator returns False.
+ """
This docstring is incorrect, please fix it.
Nice work, +1!