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

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

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/tests/test_adapter.py   Products.BlingPortlet(Download)
        blimg = IBlingImage(img)
 
        self.assertEquals(blimg.getTitle(), 'Test Image 1')
        self.assertEquals(blimg.getDescription(), 'This is a test image.')
        self.assertEquals(blimg.getLink(),  '%s/view' % itemurl)
        self.assertEquals(blimg.getImage(), itemurl)
        self.assertEquals(blimg.getImage('normal'), '%s/image_normal' % itemurl)

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/tests/test_bling_portlet.py   Products.BlingPortlet(Download)
    def testPortletTypeRegistered(self):
        portlet = getUtility(IPortletType, name='Products.BlingPortlet.bling')
        self.assertEquals(portlet.addview, 'Products.BlingPortlet.bling')
 
    def testInterfaces(self):
                                   'view': u'default'})
 
        self.assertEquals(len(mapping), 1)
        self.failUnless(isinstance(mapping.values()[0], bling.Assignment))
 
    def _timingByPeriod(self, changeStr, periodInSeconds):
        self.renderer.data.change = changeStr
        self.assertEquals(self._getResultIndex(0, 2), 0)
        self.assertEquals(self._getResultIndex(periodInSeconds, 2), 1)
        self.assertEquals(self._getResultIndex(2*periodInSeconds-1, 2), 1)

src/p/r/Products.BlingPortlet-2.1/Products/BlingPortlet/tests/test_bling_slideshow_portlet.py   Products.BlingPortlet(Download)
    def testPortletTypeRegistered(self):
        portlet = getUtility(IPortletType, name='Products.BlingPortlet.blingslideshow')
        self.assertEquals(portlet.addview, 'Products.BlingPortlet.blingslideshow')
 
    def testInterfaces(self):
                                   })
 
        self.assertEquals(len(mapping), 1)
        self.failUnless(isinstance(mapping.values()[0], bling.SlideshowAssignment))