MCPcopy Create free account
hub / github.com/Pylons/webtest / check_input

Function check_input

webtest/lint.py:400–406  ·  view source on GitHub ↗
(wsgi_input)

Source from the content-addressed store, hash-verified

398
399
400def check_input(wsgi_input):
401 for attr in ['read', 'readline', 'readlines', '__iter__']:
402 if not hasattr(wsgi_input, attr):
403 raise AssertionError(
404 "wsgi.input (%r) doesn't have the attribute %s"
405 % (wsgi_input, attr)
406 )
407
408
409def check_errors(wsgi_errors):

Callers 1

check_environFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…