Esempio n. 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)
Esempio n. 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)
Esempio n. 3
0
File: wiki.py Progetto: 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)
Esempio n. 4
0
File: wiki.py Progetto: 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)