Refactor storage test helpers

Rewrite `renderSynchronously()` to use `renderDeferred()`
This commit is contained in:
Sajith Sasidharan 2020-04-06 19:18:15 -04:00 committed by Sajith Sasidharan
parent bdfa667a22
commit 6b61b75658

View File

@ -2992,9 +2992,7 @@ def renderSynchronously(ss):
:param _StorageStatus ss: a StorageStatus instance.
"""
elem = StorageStatusElement(ss._storage, ss._nickname)
deferred = flattenString(None, elem)
return unittest.TestCase().successResultOf(deferred)
return unittest.TestCase().successResultOf(renderDeferred(ss))
def renderDeferred(ss):
"""