Example #1
0
 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))
Example #2
0
 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))
Example #3
0
 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))
Example #4
0
 def testMarker(self):
     traversed = self.portal.restrictedTraverse(
         'portal_javascripts/test_rr_1.js')
     self.failUnless(ICookedFile.providedBy(traversed))
Example #5
0
 def testMarker(self):
     traversed = self.portal.restrictedTraverse("portal_kss/test_rr_1.kss")
     self.failUnless(ICookedFile.providedBy(traversed))
Example #6
0
 def testMarker(self):
     traversed = self.portal.restrictedTraverse('portal_javascripts/test_rr_1.js')
     self.assertTrue(ICookedFile.providedBy(traversed))
Example #7
0
 def testMarker(self):
     traversed = self.portal.restrictedTraverse('portal_kss/test_rr_1.kss')
     self.assertTrue(ICookedFile.providedBy(traversed))