Did I find the right examples for you? yes no

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

src/c/o/collective.themeswitcher-1.0a2/collective/themeswitcher/tests/test_switcher.py   collective.themeswitcher(Download)
    def test_update(self):
        self.assertIsNone(self.switcher.portal_registry)
        self.assertIsNone(self.switcher.switcher)
        self.switcher.update()
        self.assertIsNotNone(self.switcher.portal_registry)
        self.assertIsNotNone(self.switcher.switcher)
        self.assertIsNone(self.switcher.available_skins)
        self.switcher.update()
        self.assertIsNotNone(self.switcher.portal_registry)
        self.assertIsNotNone(self.switcher.available_themes)
        self.assertIsNotNone(self.switcher.available_skins)