test_web: test POST_upload_no_link against /uri, not /uri/

This commit is contained in:
Brian Warner 2007-12-24 17:55:38 -07:00
parent ae760b3ee4
commit 7d311b8dd7

View File

@ -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