def testMarkerComposite(self): self.tool.registerKineticStylesheet('test_rr_2.kss') scripts = self.tool.getEvaluatedResources(self.portal) self.assertEqual(len(scripts), 1) magicId = scripts[0].getId() traversed = self.portal.restrictedTraverse('portal_kss/%s' % magicId) self.failUnless(ICookedFile.providedBy(traversed))
def testMarkerComposite(self): self.tool.registerKineticStylesheet("test_rr_2.kss") scripts = self.tool.getEvaluatedResources(self.portal) self.assertEqual(len(scripts), 1) magicId = scripts[0].getId() traversed = self.portal.restrictedTraverse("portal_kss/%s" % magicId) self.failUnless(ICookedFile.providedBy(traversed))
def testMarkerComposite(self): self.tool.registerScript('test_rr_2.css') scripts = self.tool.getEvaluatedResources(self.portal) self.assertEqual(len(scripts), 1) magicId = scripts[0].getId() traversed = self.portal.restrictedTraverse('portal_javascripts/%s' % magicId) self.assertTrue(ICookedFile.providedBy(traversed))
def testMarker(self): traversed = self.portal.restrictedTraverse( 'portal_javascripts/test_rr_1.js') self.failUnless(ICookedFile.providedBy(traversed))
def testMarker(self): traversed = self.portal.restrictedTraverse("portal_kss/test_rr_1.kss") self.failUnless(ICookedFile.providedBy(traversed))
def testMarker(self): traversed = self.portal.restrictedTraverse('portal_javascripts/test_rr_1.js') self.assertTrue(ICookedFile.providedBy(traversed))
def testMarker(self): traversed = self.portal.restrictedTraverse('portal_kss/test_rr_1.kss') self.assertTrue(ICookedFile.providedBy(traversed))