mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 21:43:09 +00:00
docstring for StaticResource
This commit is contained in:
parent
dbe2d4efd7
commit
d8b6e36c6f
@ -44,6 +44,11 @@ from .common import (
|
||||
)
|
||||
|
||||
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):
|
||||
Resource.__init__(self)
|
||||
self._response = response
|
||||
|
Loading…
Reference in New Issue
Block a user