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.dashboard.portlets.favourites-3.1.1/ftw/dashboard/portlets/favourites/tests/test_unit_defaultfavouriteshandler.py   ftw.dashboard.portlets.favourites(Download)
# coding=UTF-8
from ftw.dashboard.portlets.favourites.adapter import \
    DefaultFavouritesHandler, NoHomeFolderError, RegistryKeyError
from ftw.dashboard.portlets.favourites.testing import FAVOURITES_ZCML_LAYER
from ftw.testing import MockTestCase
 
        self.handler = self.mocker.patch(
            DefaultFavouritesHandler(self.context, self.request))
        self.expect(self.handler.get_favourites_folder()).result(self.folder)
 
 
        self.handler = self.mocker.patch(
            DefaultFavouritesHandler(self.context, self.request))
        self.expect(self.handler.get_favourites_folder()).result(self.folder)
 
        self.mock_utility(self.rtool, IRegistry)
 
        self.handler = DefaultFavouritesHandler(self.context, self.request)
 
    def test_with_registry(self):
        self.mock_tool(self.mtool, 'portal_membership')
 
        self.handler = DefaultFavouritesHandler(self.context, self.request)
 
    def test_with_homefolder(self):

src/f/t/ftw.dashboard.portlets.favourites-3.1.1/ftw/dashboard/portlets/favourites/tests/test_integration.py   ftw.dashboard.portlets.favourites(Download)
# coding=UTF-8
from ftw.dashboard.portlets.favourites.adapter import DefaultFavouritesHandler
from ftw.dashboard.portlets.favourites.interfaces import IFavouritesHandler
from ftw.dashboard.portlets.favourites.testing import FAVOURITES_PLONE_LAYER
from unittest2 import TestCase