summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-09-29 15:54:09 -0300
committerdrebs <drebs@riseup.net>2017-09-29 19:20:39 -0300
commit6212a53f6cc7cea01eb514afa696448d125b276f (patch)
tree729eadc3a681df28b8bf05f831b9e4b82a0f6926 /tests
parent638824139e0f90ac917b5827e8f38d47d1a6cda8 (diff)
[bug] raise when trying to get flags of unexisting blob
Diffstat (limited to 'tests')
-rw-r--r--tests/server/test_blobs_server.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/server/test_blobs_server.py b/tests/server/test_blobs_server.py
index 9eddf108..2ee6fda2 100644
--- a/tests/server/test_blobs_server.py
+++ b/tests/server/test_blobs_server.py
@@ -80,6 +80,14 @@ class BlobServerTestCase(unittest.TestCase):
@defer.inlineCallbacks
@pytest.mark.usefixtures("method_tmpdir")
+ def test_get_flags_raises_if_no_blob_found(self):
+ manager = BlobManager('', self.uri, self.secret,
+ self.secret, uuid4().hex)
+ with pytest.raises(SoledadError):
+ yield manager.get_flags('missing_id')
+
+ @defer.inlineCallbacks
+ @pytest.mark.usefixtures("method_tmpdir")
def test_list_filter_flag(self):
manager = BlobManager('', self.uri, self.secret,
self.secret, uuid4().hex)