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

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

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/tests/test_bling_slideshow_portlet.py   Products.BlingPortlet(Download)
from zope.component import getUtility, getMultiAdapter
from Products.BlingPortlet import bling
from Products.BlingPortlet.tests.base import TestCase
 
class TestPortlet(TestCase):
class TestRenderer(TestCase):
 
    def afterSetUp(self):
        self.setRoles(('Manager',))
 

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/tests/test_bling_portlet.py   Products.BlingPortlet(Download)
from zope.component import getUtility, getMultiAdapter
from Products.BlingPortlet import bling
from Products.BlingPortlet.tests.base import TestCase
from mocker import Mocker
from datetime import datetime
 
from Products.ATContentTypes.tests.test_atimage import loadImage
icon = loadImage('test.gif')
 
class TestPortlet(TestCase):
class TestRenderer(TestCase):
    def afterSetUp(self):
        self.setRoles(('Manager',))
 
    def renderer(self, context=None, request=None, view=None, manager=None, assignment=None):
class TestRendererTiming(TestCase):
 
    def afterSetUp(self):
        self.mocker = Mocker()
        tm = self.mocker.replace("time.time")

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/tests/test_adapter.py   Products.BlingPortlet(Download)
from Products.BlingPortlet.interfaces import IBlingImage
from Products.BlingPortlet.tests.base import TestCase
 
from Products.ATContentTypes.tests.test_atimage import loadImage
icon = loadImage('test.gif')
 
class TestAdapter(TestCase):