-
import time
import unicodedata
from zope.interface import implements
u"empty_litdir": (nm.create_from_cap(empty_litdir_uri), {}),
u"tiny_litdir": (nm.create_from_cap(tiny_litdir_uri), {}),
}
- d = c.create_dirnode(kids)
-
+ d = None
+ if mdmf:
+ d = c.create_dirnode(kids, version=MDMF_VERSION)
+ else:
+ d = c.create_dirnode(kids)
+
def _created(dn):
self.failUnless(isinstance(dn, dirnode.DirectoryNode))
backing_node = dn._node
rep = str(dn)
self.failUnless("RW-MUT" in rep)
return dn.list()
- d.addCallback(_created)
-
+
def _check_kids(children):
self.failUnlessReallyEqual(set(children.keys()),
set([one_nfc, u"two", u"mut", u"fut", u"fro",
-
import os.path, re, urllib, time
import simplejson
from StringIO import StringIO
self.failUnless(CSS_STYLE.search(res), res)
d.addCallback(_check)
return d
-
+
def test_GET_FILEURL_uri_missing(self):
d = self.GET(self.public_url + "/foo/missing?t=uri")
d.addBoth(self.should404, "test_GET_FILEURL_uri_missing")