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

Function check_errors

webtest/lint.py:409–415  ·  view source on GitHub ↗
(wsgi_errors)

Source from the content-addressed store, hash-verified

407
408
409def check_errors(wsgi_errors):
410 for attr in ['flush', 'write', 'writelines']:
411 if not hasattr(wsgi_errors, attr):
412 raise AssertionError(
413 "wsgi.errors (%r) doesn't have the attribute %s"
414 % (wsgi_errors, attr)
415 )
416
417
418def check_status(status):

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…