From: Brian Warner Date: Tue, 25 Dec 2007 00:55:38 +0000 (-0700) Subject: test_web: test POST_upload_no_link against /uri, not /uri/ X-Git-Tag: allmydata-tahoe-0.7.0~72 X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=7d311b8dd7e66ab3a373d8fa2115295735a61fab;p=tahoe-lafs%2Ftahoe-lafs.git test_web: test POST_upload_no_link against /uri, not /uri/ --- diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index fb1d119a..9d2590cb 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -937,13 +937,13 @@ class Web(WebMixin, unittest.TestCase): return d def test_POST_upload_no_link(self): - d = self.POST("/uri/", t="upload", + d = self.POST("/uri", t="upload", file=("new.txt", self.NEWFILE_CONTENTS)) d.addCallback(self.failUnlessCHKURIHasContents, self.NEWFILE_CONTENTS) return d def test_POST_upload_no_link_whendone(self): - d = self.POST("/uri/", t="upload", when_done="/", + d = self.POST("/uri", t="upload", when_done="/", file=("new.txt", self.NEWFILE_CONTENTS)) d.addBoth(self.shouldRedirect, "/") # XXX Test that resulting welcome page has a "most recent