Exemplo n.º 1
0
    def test_exist(self):
        request = testing.DummyRequest(matchdict={"title": u"index"})
        info = wiki_delete(request)
        self.assertIsInstance(info, HTTPFound)
        # self.assertEqual(request.session.flash.call_count, 1)

        request = testing.DummyRequest(matchdict={"title": u"index"})
        info = wiki_read(request)
        self.assertIsInstance(info, HTTPFound)
Exemplo n.º 2
0
Arquivo: wiki.py Projeto: Azula/votabo
    def test_exist(self):
        request = testing.DummyRequest(matchdict={"title": u"index"})
        info = wiki_delete(request)
        self.assertIsInstance(info, HTTPFound)
        # self.assertEqual(request.session.flash.call_count, 1)

        request = testing.DummyRequest(matchdict={"title": u"index"})
        info = wiki_read(request)
        self.assertIsInstance(info, HTTPFound)
Exemplo n.º 3
0
 def test_notexist(self):
     request = testing.DummyRequest(
         matchdict={"title": u"page-that-does-not-exist"})
     info = wiki_delete(request)
     self.assertIsInstance(info, HTTPFound)
Exemplo n.º 4
0
Arquivo: wiki.py Projeto: Azula/votabo
 def test_notexist(self):
     request = testing.DummyRequest(matchdict={"title": u"page-that-does-not-exist"})
     info = wiki_delete(request)
     self.assertIsInstance(info, HTTPFound)