mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
better docstring
This commit is contained in:
parent
02a543515f
commit
d221787541
@ -225,6 +225,14 @@ class _FakeTahoeUriHandler(Resource, object):
|
|||||||
|
|
||||||
def create_fake_tahoe_root():
|
def create_fake_tahoe_root():
|
||||||
"""
|
"""
|
||||||
|
If you wish to pre-populate data into the fake Tahoe grid, retain
|
||||||
|
a reference to this root and pass it to
|
||||||
|
`create_tahoe_treq_client`. For example::
|
||||||
|
|
||||||
|
root = create_fake_tahoe_root()
|
||||||
|
root.add_data(...)
|
||||||
|
client = create_tahoe_treq_client(root)
|
||||||
|
|
||||||
:returns: an IResource instance that will handle certain Tahoe URI
|
:returns: an IResource instance that will handle certain Tahoe URI
|
||||||
endpoints similar to a real Tahoe server.
|
endpoints similar to a real Tahoe server.
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user