unit test that POST /uri/?t=mkdir works
authorZooko O'Whielacronx <zooko@zooko.com>
Wed, 19 Dec 2007 00:47:49 +0000 (17:47 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Wed, 19 Dec 2007 00:47:49 +0000 (17:47 -0700)
src/allmydata/test/test_web.py

index 5a3ddcd9dfe6ab03d8b162cb9ae6b7145d6eaf14..ef54d04518b30842d2a8337062f4c3932197f401 100644 (file)
@@ -1073,14 +1073,12 @@ class Web(WebMixin, unittest.TestCase):
         d.addCallback(self.failUnlessNodeKeysAre, [])
         return d
 
-    def test_POST_mkdir_no_parentdir(self):
-        d = self.POST("/uri/", t="mkdir")
+    def test_POST_mkdir_no_parentdir_noredirect(self):
+        d = self.POST("/uri/?t=mkdir")
         def _after_mkdir(res):
             self.failUnless(uri.is_string_newdirnode_rw(res))
-            # XXX TODO more
         d.addCallback(_after_mkdir)
         return d
-    test_POST_mkdir_no_parentdir.skip = "not yet implemented"
 
     def test_POST_mkdir_replace(self): # return value?
         d = self.POST(self.public_url + "/foo", t="mkdir", name="sub")