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

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

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_classgen.py   Products.Archetypes(Download)
from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase
from Products.Archetypes.tests.utils import mkDummyInContext
from Products.Archetypes.tests.utils import gen_class
from Products.Archetypes import atapi
from Products.Archetypes.interfaces.base import IBaseUnit
def gen_dummy():
    gen_class(Dummy, schema)
 
 
class ClassGenTest(ATSiteTestCase):

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_classgen.py   Products.Archetypes(Download)
from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase
from Products.Archetypes.tests.utils import mkDummyInContext
from Products.Archetypes.tests.utils import gen_class
from Products.Archetypes import atapi
from Products.Archetypes.interfaces.base import IBaseUnit
def gen_dummy():
    gen_class(Dummy, schema)
 
 
class ClassGenTest(ATSiteTestCase):

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_metadata.py   Products.Archetypes(Download)
from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase
from Products.Archetypes.tests.utils import mkDummyInContext
from Products.Archetypes.tests.utils import gen_class
from Products.Archetypes.tests.test_classgen import Dummy
from Products.Archetypes.tests.test_classgen import schema
    def afterSetUp(self):
        ATSiteTestCase.afterSetUp(self)
        self._dummy = mkDummyInContext(klass=Dummy, oid='dummy',
                                       context=self.portal, schema=schema)
        gen_class(DummyFolder)

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_metadata.py   Products.Archetypes(Download)
from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase
from Products.Archetypes.tests.utils import mkDummyInContext
from Products.Archetypes.tests.utils import gen_class
from Products.Archetypes.tests.test_classgen import Dummy
from Products.Archetypes.tests.test_classgen import schema
    def afterSetUp(self):
        ATSiteTestCase.afterSetUp(self)
        self._dummy = mkDummyInContext(klass=Dummy, oid='dummy',
                                       context=self.portal, schema=schema)
        gen_class(DummyFolder)

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_event.py   Products.Archetypes(Download)
class Dummy(BaseContent):
    pass
utils.gen_class(Dummy)
 
# Subscription adapters for validation

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_event.py   Products.Archetypes(Download)
class Dummy(BaseContent):
    pass
utils.gen_class(Dummy)
 
# Subscription adapters for validation