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

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

src/z/3/z3c.metrics-0.1/z3c/metrics/index.py   z3c.metrics(Download)
import persistent
from BTrees import family64, Length
 
from zope import interface
import zope.event

src/s/u/substanced-HEAD/substanced/evolution/__init__.py   substanced(Download)
from .._compat import STRING_TYPES
 
from BTrees import family64
 
_marker = object()

src/h/y/hypatia-HEAD/hypatia/facet/tests.py   hypatia(Download)
    def test_ctor_defaults(self):
        from BTrees import family64
        index = self._makeOne()
        self.assertTrue(index.discriminator(self, index) is self)
        self.assertEqual(list(index.facets), sorted(FACETS))

src/h/y/hypatia-HEAD/hypatia/catalog/tests.py   hypatia(Download)
    def test_ctor_defaults(self):
        from BTrees import family64
        catalog = self._makeOne()
        self.assertTrue(catalog.family is family64)
 

src/r/e/repoze.catalog-0.8.2/repoze/catalog/tests/test_catalog.py   repoze.catalog(Download)
    def test_ctor_explicit_family(self):
        from BTrees import family64
        catalog = self._makeOne(family64)
        self.failUnless(catalog.family is family64)
 

src/r/e/repoze.catalog-0.8.2/repoze/catalog/indexes/tests/test_facet.py   repoze.catalog(Download)
    def test_ctor_explicit(self):
        from BTrees import family64
        OTHER_FACETS = ['foo', 'foo:bar']
        def _discriminator(obj, default):
            return default
    def test_ctor_string_discriminator(self):
        from BTrees import family64
        OTHER_FACETS = ['foo', 'foo:bar']
        index = self._makeOne('facets')
        self.assertEqual(index.discriminator, 'facets')

src/h/y/hypatia-0.1/hypatia/facet/tests.py   hypatia(Download)
    def test_ctor_defaults(self):
        from BTrees import family64
        index = self._makeOne()
        self.assertTrue(index.discriminator(self, index) is self)
        self.assertEqual(list(index.facets), sorted(FACETS))

src/h/y/hypatia-0.1/hypatia/catalog/tests.py   hypatia(Download)
    def test_ctor_defaults(self):
        from BTrees import family64
        catalog = self._makeOne()
        self.assertTrue(catalog.family is family64)