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

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

src/f/t/ftw.inflator-1.3.2/ftw/inflator/tests/test_bundle_utility.py   ftw.inflator(Download)
from Products.CMFPlone.factory import _DEFAULT_PROFILE
from ftw.inflator.bundle import InflatorBundle
from ftw.inflator.interfaces import IInflatorBundle
from unittest2 import TestCase
from zope.interface.verify import verifyClass
    def test_stores_arguments(self):
        obj = InflatorBundle(title=u'foo',
                             profiles=[u'bar'],
                             description=u'baz',
                             base=u'foo:default',
    def test_defaults(self):
        obj = InflatorBundle(title=u'foo', profiles=[u'bar'])
 
        self.assertEqual(obj.title, u'foo')
        self.assertEqual(obj.profiles, [u'bar'])
    def test_requires(self):
        with self.assertRaises(TypeError) as cm:
            InflatorBundle()
 
        self.assertEquals(str(cm.exception),

src/f/t/ftw.inflator-1.3.2/ftw/inflator/meta.py   ftw.inflator(Download)
from Products.CMFPlone.factory import _DEFAULT_PROFILE
from Products.Five.browser.metaconfigure import resource
from ftw.inflator.bundle import InflatorBundle
from ftw.inflator.customization import InflatorCustomization
from ftw.inflator.interfaces import IInflatorBundle
def registerBundle(_context, **kwargs):
    """Register a bundle.
    """
 
    component = InflatorBundle(**kwargs)