def setUp(self): self.context = utils.FakeTopic() self.request = Request() utils.make_request_annotable(self.request) topic.BaseTopicView.pp = property(utils.fake_get_property) self.view = topic.BaseTopicView(self.context, self.request)
def setUp(self): self.context = utils.FakeContext() self.request = Request() utils.make_request_annotable(self.request) folder.BaseFolderView.pp = property(utils.fake_get_property) self.view = folder.BaseFolderView(self.context, self.request)
def setUp(self): request = Request() context = utils.FakeLink() utils.make_request_annotable(request) link.BaseLinkView.pp = property(utils.fake_get_property) self.adapter = link.BaseLinkView(context, request)