fixed tests
This commit is contained in:
parent
2a9e614f03
commit
dd94fe59a4
|
@ -5,7 +5,7 @@ import unittest2 as unittest
|
|||
from ecreall.helpers.testing.base import BaseTest
|
||||
|
||||
from collective.dms.basecontent.testing import DMS_TESTS_PROFILE_FUNCTIONAL
|
||||
from ..dmsdocument import RecipientGroupsVocabulary, TreatingGroupsVocabulary
|
||||
from ..source import RecipientGroupsVocabulary, TreatingGroupsVocabulary
|
||||
|
||||
|
||||
class TestDmsdocument(unittest.TestCase, BaseTest):
|
||||
|
@ -20,11 +20,15 @@ class TestDmsdocument(unittest.TestCase, BaseTest):
|
|||
def test_RecipientGroupsVocabulary(self):
|
||||
voc_inst = RecipientGroupsVocabulary()
|
||||
voc_ids = [i.token for i in voc_inst(self.portal).__iter__()]
|
||||
self.assertEquals(set(voc_ids), set(['test_user_1_', 'Administrators', 'AuthenticatedUsers',
|
||||
self.assertEqual(set(voc_ids), set(['Administrators',
|
||||
'Reviewers', 'Site Administrators']))
|
||||
voc_ids = [i.token for i in voc_inst(self.portal).search('user')]
|
||||
self.assertEqual(set(voc_ids), set(['test_user_1_', 'AuthenticatedUsers']))
|
||||
|
||||
def test_TreatingGroupsVocabulary(self):
|
||||
voc_inst = TreatingGroupsVocabulary()
|
||||
voc_ids = [i.token for i in voc_inst(self.portal).__iter__()]
|
||||
self.assertEquals(set(voc_ids), set(['test_user_1_', 'Administrators', 'AuthenticatedUsers',
|
||||
self.assertEqual(set(voc_ids), set(['Administrators',
|
||||
'Reviewers', 'Site Administrators']))
|
||||
voc_ids = [i.token for i in voc_inst(self.portal).search('user')]
|
||||
self.assertEqual(set(voc_ids), set(['test_user_1_', 'AuthenticatedUsers']))
|
||||
|
|
Reference in New Issue