mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 23:42:38 +00:00
Actual test for get_version().
This commit is contained in:
parent
a482f216a1
commit
d04cd13b37
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user