Did I find the right examples for you? yes no

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

src/c/o/collective.themeswitcher-1.0a2/collective/themeswitcher/tests/test_switcher.py   collective.themeswitcher(Download)
    def test_getDefaultSkin(self):
 
        default_skin = self.switcher.getDefaultSkin(self._old_getDefaultSkin)
        self.assertEqual(default_skin, 'defaultskin')
 
        self.switcher.switcher.useOld = True
        default_skin = self.switcher.getDefaultSkin(self._old_getDefaultSkin)
        self.assertEqual(default_skin, 'old default skin')
    def test_getSettings(self):
 
        settings = self.switcher.getSettings(self._old_settings)
        self.assertEqual(settings, 'settings')
 
        self.switcher.switcher.useOld = True
        settings = self.switcher.getSettings(self._old_settings)
        self.assertEqual(settings, 'old settings')
    def test_getDefaultSkin(self):
        #self.switcher.theme = None
        skin = self.switcher.getDefaultSkin(self._old_getDefaultSkin)
        self.assertEqual(skin, 'old default skin')