the tests are unit-tests

This commit is contained in:
meejah 2020-06-11 15:55:19 -06:00
parent 36d9bf5d09
commit 0f4201ef19

View File

@ -1,26 +0,0 @@
from allmydata.testing.web import (
create_fake_tahoe_root,
deterministic_key_generator,
)
import pytest
import pytest_twisted
@pytest_twisted.inlineCallbacks
def test_retrieve_cap():
"""
WebUI Fake can serve a read-capability back
"""
keys = deterministic_key_generator()
root = yield create_fake_tahoe_root()
dummy_readcap = yield root.add_data(
next(keys),
"some dummy content\n"*20
)
print("readcap: {}".format(dummy_readcap))
assert dummy_readcap.to_string() == "URI:CHK:ifaucqkbifaucqkbifaucqkbie:qg3n5r4q36wvwt33fobghsyqacc5ymnadk7wf6hafamsh6amybza:1:1:380"