from allmydata.interfaces import IMutableShare, BadWriteEnablerError
from allmydata.util import idlib, log
from allmydata.util.assertutil import precondition, _assert
+from allmydata.util.namespace import Namespace
from allmydata.util.mathutil import div_ceil
from allmydata.util.hashutil import timing_safe_compare
from allmydata.storage.common import CorruptStoredShareError, UnknownMutableContainerVersionError, \
assert struct.calcsize(">Q") == 8, struct.calcsize(">Q")
-class Namespace(object):
- pass
-
-
class MutableCloudShare(CloudShareBase, CloudShareReaderMixin):
implements(IMutableShare)
from allmydata import interfaces
from allmydata.util.assertutil import precondition
+from allmydata.util.namespace import Namespace
from allmydata.util import fileutil, hashutil, base32, time_format
from allmydata.storage.server import StorageServer
from allmydata.storage.backends.base import ContainerItem, ContainerListing
self.failUnless(done)
-class Namespace(object):
- pass
-
-
class AdminContainerTests(unittest.TestCase, WorkdirMixin):
def test_admin_create_container(self):
# We'll use the mock cloud backend to test this.