| 41 | |
| 42 | |
| 43 | class MuxValidator(validation.Validator): |
| 44 | def __init__(self, validators, spec): |
| 45 | super(MuxValidator, self).__init__() |
| 46 | |
| 47 | self.validators = validators |
| 48 | self.spec = spec |
| 49 | |
| 50 | def validate(self, document): |
| 51 | input = document.text |
| 52 | |
| 53 | for validator in self.validators: |
| 54 | validator(input, self.spec) |
| 55 | |
| 56 | |
| 57 | class StringReader(object): |
no outgoing calls
no test coverage detected