Exemplo n.º 1
0
 def setUp(self):
     self.app = db_app.app()
     user = self.user = User(u"test")
     user.groups.append("group:editor")
     root = self.app.root("editor")
     self.page0 = db_app.create_page(root, user)
     self.page = db_app.create_page(self.page0, user)
Exemplo n.º 2
0
 def setUp(self):
     self.app = db_app.app()
     root = self.app.root("editor")
     user = User(u"test")
     user.groups.append("group:editor")
     self.page = db_app.create_page(root, user)
     self.text1 = db_app.create_text(root, user)
     self.text2 = db_app.create_text(root, user)
     pass
Exemplo n.º 3
0
 def setUp(self):
     self.app = db_app.app()
     root = self.app.root("editor")
     user = User(u"test")
     user.groups.append("group:editor")
     self.page = db_app.create_page(root, user)
     self.text1 = db_app.create_text(root, user)
     self.text2 = db_app.create_text(root, user)
     pass
Exemplo n.º 4
0
 def setUp(self):
     request = testing.DummyRequest()
     request._LOCALE_ = "en"
     self.request = request
     self.config = testing.setUp(request=request)
     self.app = db_app.app()
     self.app.Startup(self.config)
     self.root = self.app.root("editor")
     user = User(u"test")
     user.groups.append("group:editor")
     self.page = db_app.create_page(self.root, user)
     self.text1 = db_app.create_text(self.root, user)
     self.text2 = db_app.create_text(self.root, user)
     self.request.context = self.page
Exemplo n.º 5
0
 def setUp(self):
     request = testing.DummyRequest()
     request._LOCALE_ = "en"
     self.request = request
     self.config = testing.setUp(request=request)
     self.app = db_app.app()
     self.app.Startup(self.config)
     self.root = self.app.root("editor")
     user = User(u"test")
     user.groups.append("group:editor")
     self.page = db_app.create_page(self.root, user)
     self.text1 = db_app.create_text(self.root, user)
     self.text2 = db_app.create_text(self.root, user)
     self.request.context = self.page