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

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

src/f/t/ftw.notification.base-1.2.4/ftw/notification/base/tests/test_resolve_groups.py   ftw.notification.base(Download)
from ftw.builder import Builder
from ftw.builder import create
from ftw.notification.base.events.handlers import add_group_members
from ftw.notification.base.testing import FTW_N_BASE_INTEGRATION_TESTING
from unittest2 import TestCase
    def test_resolve_group(self):
        key = 'to_list_group'
        self.request.set(key, [self.group.getId()])
 
        add_group_members(self.portal, 'to_list')
        self.request.set(key, [self.group.getId(), ])
 
        add_group_members(self.portal, 'to_list')
 
        self.assertListEqual([self.user2.getId(), self.user1.getId()],