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

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

src/i/w/iw.sitestat-1.0.0-beta-2/iw/sitestat/tests/test_testutils.py   iw.sitestat(Download)
from iw.sitestat.tests.base import sitestatTestCase
from iw.sitestat.tests import utils as in_utils
from iw.sitestat.config import HAVE_COLLAGE, HAVE_PLONEARTICLE, HAVE_SIMPLEALIAS
 
class UtilsTestCase(sitestatTestCase):
    def testAddCollage(self):
        if HAVE_COLLAGE:
            self.loginAsPortalOwner()
            foo_collage = in_utils.addCollage(self.portal, 'col', 'Collage')
            self.failUnlessEqual(foo_collage.title_or_id(), 'Collage')

src/i/w/iw.sitestat-1.0.0-beta-2/iw/sitestat/tests/test_doctests.py   iw.sitestat(Download)
from Testing.ZopeTestCase import FunctionalDocFileSuite as Suite
from iw.sitestat.tests.base import sitestatFunctionalTestCase
from iw.sitestat.config import PRODUCTNAME, HAVE_COLLAGE, HAVE_PLONEARTICLE, HAVE_SIMPLEALIAS
 
OPTIONFLAGS = (doctest.REPORT_ONLY_FIRST_FAILURE |
def list_doctests():
    this_dir = os.path.dirname(os.path.abspath(__file__))
    filenames = [filename for filename in glob.glob(os.path.join(this_dir, 'test*.txt'))]
    for haveit, doctestfile in [
        (HAVE_COLLAGE, 'test_collage_linksfinder.txt'),

src/i/w/iw.sitestat-1.0.0-beta-2/iw/sitestat/tests/base.py   iw.sitestat(Download)
from Products.PloneTestCase.layer import onsetup
import iw.sitestat.config
from iw.sitestat.config import (
    PRODUCTNAME, HAVE_COLLAGE, HAVE_PLONEARTICLE, HAVE_SIMPLEALIAS)
import iw.sitestat
if HAVE_COLLAGE:
    return
 
if HAVE_COLLAGE:
    @onsetup
    def setUpCollage():
extension_profiles = ['%s:default' % PRODUCTNAME]
 
if HAVE_COLLAGE:
    products.append('Collage')
    extension_profiles.append('Products.Collage:default')

src/i/w/iw.sitestat-1.0.0-beta-2/iw/sitestat/linksfinders/__init__.py   iw.sitestat(Download)
__docformat__ = 'restructuredtext'
 
from iw.sitestat.config import HAVE_PLONEARTICLE, HAVE_COLLAGE, HAVE_SIMPLEALIAS
from iw.sitestat import LOG
 
    from thirdparty.plonearticle import PloneArticleFileLinksFinder
 
if HAVE_COLLAGE:
    LOG("Activating support for Collage")
    from thirdparty.collage import CollageFileLinksFinder