From c027c544466355a864aa5426c561562fd109aff3 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Fri, 5 Jul 2019 13:48:07 -0400 Subject: [PATCH] Just reuse this for mutable, it has some helpful stuff --- .../tests/test_storage_protocol.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/_secureaccesstokenauthorizer/tests/test_storage_protocol.py b/src/_secureaccesstokenauthorizer/tests/test_storage_protocol.py index 5cb8a06..cc980e6 100644 --- a/src/_secureaccesstokenauthorizer/tests/test_storage_protocol.py +++ b/src/_secureaccesstokenauthorizer/tests/test_storage_protocol.py @@ -103,12 +103,12 @@ class LocalRemote(object): ) -class ImmutableTests(TestCase): +class ShareTests(TestCase): """ - Tests for interaction with immutable shares. + Tests for interaction with shares. """ def setUp(self): - super(ImmutableTests, self).setUp() + super(ShareTests, self).setUp() self.canary = LocalReferenceable(None) self.anonymous_storage_server = self.useFixture(AnonymousStorageServer()).storage_server @@ -131,7 +131,7 @@ class ImmutableTests(TestCase): sharenums=sharenum_sets(), size=sizes(), ) - def test_create(self, storage_index, renew_secret, cancel_secret, sharenums, size): + def test_create_immutable(self, storage_index, renew_secret, cancel_secret, sharenums, size): """ Immutable share data created using *allocate_buckets* and methods of the resulting buckets can be read back using *get_buckets* and methods of @@ -365,6 +365,7 @@ def get_leases(storage_server, storage_index): in storage_server.remote_get_buckets(storage_index).items() } + def cleanup_storage_server(storage_server): """ Delete all of the shares held by the given storage server. -- GitLab