コード例 #1
0
 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)
コード例 #2
0
 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)
コード例 #3
0
ファイル: wiki.py プロジェクト: Azula/votabo
 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)
コード例 #4
0
ファイル: wiki.py プロジェクト: Azula/votabo
 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)