mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-08 03:14:21 +00:00
Work consistently across Python 2 and 3.
This commit is contained in:
parent
3edc1cb29e
commit
f6eb4aef57
@ -1,11 +1,11 @@
|
||||
from six import ensure_text
|
||||
|
||||
from json import (
|
||||
loads,
|
||||
)
|
||||
|
||||
import hashlib
|
||||
from mock import Mock
|
||||
from json import (
|
||||
dumps,
|
||||
loads,
|
||||
)
|
||||
from fixtures import (
|
||||
TempDir,
|
||||
)
|
||||
@ -464,7 +464,7 @@ class StoragePluginWebPresence(AsyncTestCase):
|
||||
plugin_name=self.storage_plugin,
|
||||
).encode("utf-8")
|
||||
result = yield do_http("get", url)
|
||||
self.assertThat(result, Equals(dumps({b"web": b"1"})))
|
||||
self.assertThat(loads(result), Equals({"web": "1"}))
|
||||
|
||||
@inlineCallbacks
|
||||
def test_plugin_resource_persistent_across_requests(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user