Did I find the right examples for you? yes no

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

src/c/o/collective.themeswitcher-1.0a2/collective/themeswitcher/tests/test_switcher.py   collective.themeswitcher(Download)
    def setUp(self):
        super(UnitTestRegistryThemeSwitcher, self).setUp()
        self.switcher = RegistryThemeSwitcher(self.portal, self.request)
        self.switcher.portal_registry = fake.FakeRegistry()
        self.switcher.switcher = fake.FakeSwitcher()
    def setUp(self):
        super(UnitTestPloneThemeSwitcher, self).setUp()
        self.switcher = PloneThemeSwitcher(self.portal, self.request)
        self.switcher.portal_registry = fake.FakeRegistry()
        self.switcher.available_skins = ['Sunburst Theme', 'Plone Classic Theme']
    def test_update(self):
        self.assertIsNone(self.switcher._is_mobile)
        self.switcher.portal_registry = fake.FakeRegistry()
        self.switcher.available_skins = ['Sunburst Theme', 'Plone Classic Theme']
        self.switcher.available_themes = ['plonetheme.mobile']