mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-22 04:18:23 +00:00
embetter docstring
This commit is contained in:
parent
ced9bdeb25
commit
af70911e2f
@ -226,11 +226,11 @@ 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
|
If you wish to pre-populate data into the fake Tahoe grid, retain
|
||||||
a reference to this root and pass it to
|
a reference to this root by creating it yourself and passing it to
|
||||||
`create_tahoe_treq_client`. For example::
|
`create_tahoe_treq_client`. For example::
|
||||||
|
|
||||||
root = create_fake_tahoe_root()
|
root = create_fake_tahoe_root()
|
||||||
root.add_data(...)
|
cap_string = root.add_data(...)
|
||||||
client = create_tahoe_treq_client(root)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user