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

All Samples(47)  |  Call(0)  |  Derive(31)  |  Import(16)

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_varschema.py   Products.Archetypes(Download)
from unittest import TestSuite, makeSuite
 
from Products.Archetypes.tests.attestcase import ATTestCase
from Products.Archetypes.atapi import BaseSchema, BaseContent, Schema, \
    StringField, registerType, process_types, listTypes
class VarSchemataTest(ATTestCase):
 
    def afterSetUp(self):
        registerType(Dummy, 'Archetypes')
        content_types, constructors, ftis = process_types(listTypes(), PKG_NAME)

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_validation.py   Products.Archetypes(Download)
################################################################################
 
from Products.Archetypes.tests.attestcase import ATTestCase
 
from Products.validation import validation as validationService
 
 
class TestValidation(ATTestCase):

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_utils2.py   Products.Archetypes(Download)
 
 
from Products.Archetypes.tests.attestcase import ATTestCase
from Products.Archetypes.utils import OrderedDict
 
 
class OrderedDictTest(ATTestCase):

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_utils.py   Products.Archetypes(Download)
 
 
from Products.Archetypes.tests.attestcase import ATTestCase
from Products.Archetypes.utils import DisplayList
from Products.Archetypes.utils import IntDisplayList
from Products.Archetypes.utils import Vocabulary
from Products.Archetypes.utils import make_uuid
 
 
class UidGeneratorTest(ATTestCase):
class DisplayListTest(ATTestCase):
 
    def test_cmp(self):
        ta = ('a', 'b', 'c')
        tb = ('a', 'c', 'b')
class IntDisplayListTest(ATTestCase):
 
    def test_cmp(self):
        ta = (1, 2, 3)
        tb = (1, 3, 2)
class VocabularyTest(ATTestCase):
 
    def test_getValue(self):
        a = (('a', 'A',), ('b', '\xc3\xab'), ('c', u'xeb'), ('d', 42))
        dla = DisplayList(a)

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_storage.py   Products.Archetypes(Download)
from Products.Archetypes.atapi import AttributeStorage, MetadataStorage
 
from Products.Archetypes.tests.attestcase import ATTestCase
from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase
from Products.Archetypes.tests.test_classgen import Dummy
class MetadataStorageTest(ATTestCase):
 
    def afterSetUp(self):
        gen_dummy()
        self._dummy = dummy = Dummy(oid='dummy')
class AttributeStorageTest(ATTestCase):
 
    def afterSetUp(self):
        gen_dummy()
        self._dummy = dummy = Dummy(oid='dummy')

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_schemata_manipulation.py   Products.Archetypes(Download)
"""
 
from Products.Archetypes.tests.attestcase import ATTestCase
 
from Products.Archetypes.atapi import StringField
from Products.Archetypes.Schema import ManagedSchema
 
 
class SchemataManipulationTest(ATTestCase):

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/test_fieldvalidation.py   Products.Archetypes(Download)
from unittest import TestSuite, makeSuite
 
from Products.Archetypes.tests.attestcase import ATTestCase
 
from Acquisition import Explicit
class TestSettings(ATTestCase):
 
    def afterSetUp(self):
        instance = FakeType('fake')
        self.instance = instance.__of__(self.folder)
class TestValidation(ATTestCase):
 
    def afterSetUp(self):
        self.instance = FakeType('fake')
 

src/p/r/Products.Archetypes-HEAD/Products/Archetypes/tests/atsitetestcase.py   Products.Archetypes(Download)
class ATSiteTestCase(CMFTestCase.CMFTestCase, attestcase.ATTestCase):
    """AT test case with CMF site
    """
    layer = ArchetypesSite
 

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_varschema.py   Products.Archetypes(Download)
from unittest import TestSuite, makeSuite
 
from Products.Archetypes.tests.attestcase import ATTestCase
from Products.Archetypes.atapi import BaseSchema, BaseContent, Schema, \
    StringField, registerType, process_types, listTypes
class VarSchemataTest(ATTestCase):
 
    def afterSetUp(self):
        registerType(Dummy, 'Archetypes')
        content_types, constructors, ftis = process_types(listTypes(), PKG_NAME)

src/p/r/Products.Archetypes-1.10.1/Products/Archetypes/tests/test_validation.py   Products.Archetypes(Download)
################################################################################
 
from Products.Archetypes.tests.attestcase import ATTestCase
 
from Products.validation import validation as validationService
 
 
class TestValidation(ATTestCase):

  1 | 2  Next