Did I find the right examples for you? yes no

All Samples(15)  |  Call(8)  |  Derive(0)  |  Import(7)

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/tests/test_utils.py   plone.app.theming(Download)
    def test_getAvailableThemes(self):
        from plone.app.theming.utils import getAvailableThemes
        from plone.app.theming.utils import getTheme
 
        themes = getAvailableThemes()
 
        self.assertTrue(len(themes) >= 3)
        theme = getTheme('plone.app.theming.tests')

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/tests/test_utils.py   plone.app.theming(Download)
    def test_getAvailableThemes(self):
        from plone.app.theming.utils import getAvailableThemes
        from plone.app.theming.utils import getTheme
 
        themes = getAvailableThemes()
 
        self.assertTrue(len(themes) >= 3)
        theme = getTheme('plone.app.theming.tests')

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/tests/test_transform.py   plone.app.theming(Download)
 
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.utils import applyTheme, getAvailableThemes, getTheme
from plone.app.theming.utils import InternalResolver, PythonResolver, resolvePythonURL
 
 
        self.settings.enabled = True
        theme = getTheme('plone.app.theming.tests')
        applyTheme(theme)
        self.assertEqual(self.settings.rules, u'/++theme++plone.app.theming.tests/rules.xml')

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/tests/test_transform.py   plone.app.theming(Download)
 
from plone.app.theming.interfaces import IThemeSettings
from plone.app.theming.utils import applyTheme, getAvailableThemes, getTheme
from plone.app.theming.utils import InternalResolver, PythonResolver, resolvePythonURL
 
 
        self.settings.enabled = True
        theme = getTheme('plone.app.theming.tests')
        applyTheme(theme)
        self.assertEqual(self.settings.rules, u'/++theme++plone.app.theming.tests/rules.xml')

src/b/r/brasil.gov.temas-1.0.3/src/brasil/gov/temas/tests/test_setup.py   brasil.gov.temas(Download)
# -*- coding: utf-8 -*-
 
from brasil.gov.temas.testing import INTEGRATION_TESTING
from plone.app.theming.utils import getAvailableThemes
from plone.app.theming.utils import getTheme
    def test_tema_verde_disponivel(self):
        theme = getTheme('verde')
        self.assertTrue(theme is not None)
        self.assertEqual(theme.__name__, 'verde')
        self.assertEqual(theme.title, 'Portal Padrão - Tema Verde')
    def test_tema_amarelo_disponivel(self):
        theme = getTheme('amarelo')
        self.assertTrue(theme is not None)
        self.assertEqual(theme.__name__, 'amarelo')
        self.assertEqual(theme.title, 'Portal Padrão - Tema Amarelo')
    def test_tema_branco_disponivel(self):
        theme = getTheme('branco')
        self.assertTrue(theme is not None)
        self.assertEqual(theme.__name__, 'branco')
        self.assertEqual(theme.title, 'Portal Padrão - Tema Branco')
    def test_tema_azul_disponivel(self):
        theme = getTheme('azul')
        self.assertTrue(theme is not None)
        self.assertEqual(theme.__name__, 'azul')
        self.assertEqual(theme.title, 'Portal Padrão - Tema Azul')

src/p/l/plone.app.theming-HEAD/src/plone/app/theming/tests/test_controlpanel.py   plone.app.theming(Download)
from Products.CMFCore.utils import getToolByName
 
from plone.app.theming.utils import getZODBThemes, getTheme
 
 

src/p/l/plone.app.theming-1.2.0/src/plone/app/theming/tests/test_controlpanel.py   plone.app.theming(Download)
from Products.CMFCore.utils import getToolByName
 
from plone.app.theming.utils import getZODBThemes, getTheme