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 twisted.trial import unittest
from allmydata.util import iputil
+from allmydata.util.namespace import Namespace
import allmydata.test.common_util as testutil
-class Namespace:
- pass
-
DOTTED_QUAD_RE=re.compile("^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$")
MOCK_IPADDR_OUTPUT = """\
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.
--- /dev/null
+
+class Namespace(object):
+ pass