コード例 #1
0
 def test_getBasePath(self):
     view = EtherpadEditView(self.document, self.request)
     view.etherpad = fake.FakeEtherpad()
     view.update()
     # plone in mounted on / on the proxy
     self.subpath = '/'
     self.assertEqual(view._getBasePath(), '/pad/')
     # plone in mounted on /foo on the proxy
     self.subpath = '/foo'
     self.assertEqual(view._getBasePath(), '/foo/pad/')
コード例 #2
0
 def setUp(self):
     super(UnitTestArchetypes, self).setUp()
     self.context = fake.FakeContext()
     self.request = fake.FakeRequest()
     self.view = EtherpadEditView(self.context, self.request)
     self.load_fake()
コード例 #3
0
 def setUp(self):
     super(IntegrationTestArchetypes, self).setUp()
     self.view = EtherpadEditView(self.document, self.request)
     self.view.etherpad = fake.FakeEtherpad()