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 testAddPloneArticle(self):
        if HAVE_PLONEARTICLE:
            self.loginAsPortalOwner()
            foo_article = in_utils.addPloneArticle(self.portal, 'art', 'Article')
            self.failUnlessEqual(foo_article.title_or_id(), 'Article')

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 |
    for haveit, doctestfile in [
        (HAVE_COLLAGE, 'test_collage_linksfinder.txt'),
        (HAVE_PLONEARTICLE,'test_plonearticle_linksfinder.txt'),
        (HAVE_SIMPLEALIAS, 'test_simplealias_linksfinder.txt')]:
        if not haveit:

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:
    import Products.Collage
if HAVE_PLONEARTICLE:
    setUpCollage()
 
if HAVE_PLONEARTICLE:
    @onsetup
    def setUpPloneArticle():
    extension_profiles.append('Products.Collage:default')
 
if HAVE_PLONEARTICLE:
    products.append('PloneArticle')
    extension_profiles.append('Products.PloneArticle: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 standard import ATTypeLinksFinder, ATCTFileLinksFinder
 
if HAVE_PLONEARTICLE: