mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
Actual test for get_version().
This commit is contained in:
parent
a482f216a1
commit
d04cd13b37
@ -63,9 +63,13 @@ class IStorageServerSharedAPIsTestsMixin(object):
|
||||
|
||||
@inlineCallbacks
|
||||
def test_version(self):
|
||||
# TODO get_version() returns a dict-like thing with some of the
|
||||
# expected fields.
|
||||
yield self.storage_server.get_version()
|
||||
"""
|
||||
``IStorageServer`` returns a dictionary where the key is an expected
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user