def test_new(self): request = testing.DummyRequest(method="PUT", user=self.user0, matchdict={"title": u"some-new-page"}, params={ "title": u"some-new-page", "body": u"a new page body" }) info = wiki_update(request) self.assertIsInstance(info, HTTPFound)
def test_basic(self): request = testing.DummyRequest(method="PUT", user=self.user0, matchdict={"title": u"index"}, params={ "title": u"index", "body": u"a new index" }) info = wiki_update(request) self.assertIsInstance(info, HTTPFound)
def test_new(self): request = testing.DummyRequest(method="PUT", user=self.user0, matchdict={"title": u"some-new-page"}, params={"title": u"some-new-page", "body": u"a new page body"}) info = wiki_update(request) self.assertIsInstance(info, HTTPFound)
def test_basic(self): request = testing.DummyRequest(method="PUT", user=self.user0, matchdict={"title": u"index"}, params={"title": u"index", "body": u"a new index"}) info = wiki_update(request) self.assertIsInstance(info, HTTPFound)