def setUp(self): cache.prc.flush_all() self.testbed = testbed.Testbed() self.testbed.activate() self.testbed.init_datastore_v3_stub() self.testbed.init_memcache_stub() self.testbed.init_taskqueue_stub() self.testbed.init_user_stub() self.oauth_stub = OAuthStub(self.testbed, logout=True) self.browser = Browser()
def setUp(self): super(PageHandlerTest, self).setUp() self.oauth_stub = OAuthStub(self.testbed) self.login('*****@*****.**', 'ak') self.fixtures = [ [u'Home', u'Home'], [u'A', u'Goto [[Home]]'], [u'Post A', u'.pub\nHello'], [u'Post B', u'.pub\nHello'], [u'Post C', u'.pub BBS\nHello'], [u'BBS', u'.schema Blog\nBlog'], ] for title, body in self.fixtures: self.update_page(body, title) self.browser = Browser()
def setUp(self): self.testbed = testbed.Testbed() self.testbed.activate() self.testbed.init_datastore_v3_stub() self.testbed.init_memcache_stub() self.testbed.init_taskqueue_stub() self.testbed.init_user_stub() self.oauth_stub = OAuthStub(self.testbed, logout=True) self.fixtures = [ [u'Home', u'Home'], [u'A', u'Goto [[Home]]'], [u'Post A', u'.pub\nHello'], [u'Post B', u'.pub\nHello'], [u'Post C', u'.pub BBS\nHello'], [u'BBS', u'.schema Blog\nBlog'], ] for title, body in self.fixtures: page = WikiPage.get_by_title(title) page.update_content(body, 0, None) self.browser = Browser()