Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/a/r/archetypes.datetimewidget-HEAD/archetypes/datetimewidget/tests/test_recources.py   archetypes.datetimewidget(Download)
    def test_portal_js(self):
        # this plugin is disabled by default. let's check if it's now enabled'
        js_id = "++resource++plone.app.jquerytools.dateinput.js"
        p_js = getToolByName(self.portal,'portal_javascripts')
        self.failUnless(p_js.getResource(js_id).getEnabled())
    def test_portal_css(self):
        # this stylesheet is disabled by default. let's check if it's now enabled
        css_id = "++resource++plone.app.jquerytools.dateinput.css"
        p_css = getToolByName(self.portal,'portal_css')
        self.failUnless(p_css.getResource(css_id).getEnabled())