docstring for StaticResource
This commit is contained in:
parent
dbe2d4efd7
commit
d8b6e36c6f
|
@ -44,6 +44,11 @@ from .common import (
|
||||||
)
|
)
|
||||||
|
|
||||||
class StaticResource(Resource, object):
|
class StaticResource(Resource, object):
|
||||||
|
"""
|
||||||
|
``StaticResource`` is a resource that returns whatever Python object it is
|
||||||
|
given from its render method. This is useful for testing
|
||||||
|
``render_exception``\\ 's handling of different render results.
|
||||||
|
"""
|
||||||
def __init__(self, response):
|
def __init__(self, response):
|
||||||
Resource.__init__(self)
|
Resource.__init__(self)
|
||||||
self._response = response
|
self._response = response
|
||||||
|
|
Loading…
Reference in New Issue