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

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

src/s/c/sc.galleria.support-1.0/src/sc/galleria/support/tests/test_browserview.py   sc.galleria.support(Download)
from Products.ATContentTypes.content.link import ATLink
 
from sc.galleria.support.browser.galleria import Galleria
from sc.galleria.support.testing import INTEGRATION_TESTING
 
        link = self.portal['picassa_link']
        link.setRemoteUrl('https://picasaweb.google.com/user_id/galleria_id')
        galleria = Galleria(link, self.request)
        self.assertEquals(galleria.plugins(plname='picasaweb'),
                          ('user_id', 'galleria_id'))
        link.setRemoteUrl(
            'http://www.flickr.com/photos/user_id/sets/galleria_id/')
        galleria = Galleria(link, self.request)
        self.assertEquals(galleria.plugins(plname='flickr'), 'galleria_id')
 
        link.setRemoteUrl(
            'http://www.facebook.com/media/set/?set=a.album_id')
        galleria = Galleria(link, self.request)
        self.assertEquals(galleria.plugins(plname='facebook'), 'album_id')
 
    def test_portal_url(self):
        galleria = Galleria(self.user, self.request)