Did I find the right examples for you? yes no

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

src/c/o/collective.portlet.quote-1.0.1/collective/portlet/quote/tests/test_portlet.py   collective.portlet.quote(Download)
    def test_portlet_type_registered(self):
        portlet = getUtility(
            IPortletType,
            name='collective.portlet.quote.RandomQuote')
        self.assertEquals(portlet.addview,
        addview.createAndAdd(data={})
 
        self.assertEquals(len(mapping), 1)
        self.failUnless(isinstance(mapping.values()[0],
                                   randomquote.Assignment))