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

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

src/p/r/Products.CMFActionIcons-2.1.3/Products/CMFActionIcons/tests/test_exportimport.py   Products.CMFActionIcons(Download)
    def test_normal(self):
        from Products.CMFActionIcons.exportimport \
            import importActionIconsTool
 
        site = self._initSite(with_icon=False)
        context = DummyImportContext(site)
        context._files['actionicons.xml'] = self._WITH_ICON_EXPORT
        importActionIconsTool(context)
 
        self.assertEqual(len(ait.listActionIcons()), 1)
    def test_nopurge(self):
        from Products.CMFActionIcons.exportimport \
            import importActionIconsTool
 
        site = self._initSite(with_icon=True)
        context = DummyImportContext(site, purge=False)
        context._files['actionicons.xml'] = self._WITH_ICON_EXPORT
        importActionIconsTool(context)
 
        self.assertEqual(len(ait.listActionIcons()), 1)