From 2a7f374e45896148076c86a5e494c97e851334eb Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Tue, 18 Dec 2007 17:47:49 -0700 Subject: [PATCH] unit test that POST /uri/?t=mkdir works --- src/allmydata/test/test_web.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index 5a3ddcd9..ef54d045 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -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") -- 2.45.2