Actual test for get_version().

This commit is contained in:
Itamar Turner-Trauring 2021-09-13 09:43:03 -04:00
parent a482f216a1
commit d04cd13b37

View File

@ -63,9 +63,13 @@ class IStorageServerSharedAPIsTestsMixin(object):
@inlineCallbacks @inlineCallbacks
def test_version(self): def test_version(self):
# TODO get_version() returns a dict-like thing with some of the """
# expected fields. ``IStorageServer`` returns a dictionary where the key is an expected
yield self.storage_server.get_version() protocol version.
"""
result = yield self.storage_server.get_version()
self.assertIsInstance(result, dict)
self.assertIn(b"http://allmydata.org/tahoe/protocols/storage/v1", result)
class IStorageServerImmutableAPIsTestsMixin(object): class IStorageServerImmutableAPIsTestsMixin(object):