(self, name, value, valids=None, invalids=None, types=None)
| 50 | raise RuntimeError('No route for %s', name) |
| 51 | |
| 52 | def _check_arg(self, name, value, valids=None, invalids=None, types=None): |
| 53 | if value in (None, ''): |
| 54 | raise RuntimeError('Missing argument "%s"' % name) |
| 55 | if valids is not None and value not in valids: |
| 56 | raise RuntimeError('Invalid argument "%s"' % name) |
| 57 | if invalids is not None and value in invalids: |
| 58 | raise RuntimeError('Invalid argument "%s"' % name) |
| 59 | if types is not None and not isinstance(value, types): |
| 60 | raise RuntimeError('Invalid argument "%s"' % name) |
| 61 | |
| 62 | def _check_path(self, path): |
| 63 | if not os.path.exists(path): |
no outgoing calls
no test coverage detected