mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-10 23:12:40 +00:00
Refactor storage test helpers
Rewrite `renderSynchronously()` to use `renderDeferred()`
This commit is contained in:
parent
bdfa667a22
commit
6b61b75658
@ -2992,9 +2992,7 @@ def renderSynchronously(ss):
|
|||||||
|
|
||||||
:param _StorageStatus ss: a StorageStatus instance.
|
:param _StorageStatus ss: a StorageStatus instance.
|
||||||
"""
|
"""
|
||||||
elem = StorageStatusElement(ss._storage, ss._nickname)
|
return unittest.TestCase().successResultOf(renderDeferred(ss))
|
||||||
deferred = flattenString(None, elem)
|
|
||||||
return unittest.TestCase().successResultOf(deferred)
|
|
||||||
|
|
||||||
def renderDeferred(ss):
|
def renderDeferred(ss):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user