entities/test/unittest_base.py
changeset 10402 e3c20f4d1a7c
parent 10396 33e44293b0eb
child 10411 4ee15441f2eb
equal deleted inserted replaced
10401:4f41eb2f06bc 10402:e3c20f4d1a7c
   144             self.assertEqual(u'0', e.dc_title())
   144             self.assertEqual(u'0', e.dc_title())
   145 
   145 
   146     def test_allowed_massmail_keys(self):
   146     def test_allowed_massmail_keys(self):
   147         with self.admin_access.repo_cnx() as cnx:
   147         with self.admin_access.repo_cnx() as cnx:
   148             e = cnx.execute('CWUser U WHERE U login "member"').get_entity(0, 0)
   148             e = cnx.execute('CWUser U WHERE U login "member"').get_entity(0, 0)
   149             # Bytes/Password attributes should be omited
   149             # Bytes/Password attributes should be omitted
   150             self.assertEqual(e.cw_adapt_to('IEmailable').allowed_massmail_keys(),
   150             self.assertEqual(e.cw_adapt_to('IEmailable').allowed_massmail_keys(),
   151                               set(('surname', 'firstname', 'login', 'last_login_time',
   151                               set(('surname', 'firstname', 'login', 'last_login_time',
   152                                    'creation_date', 'modification_date', 'cwuri', 'eid'))
   152                                    'creation_date', 'modification_date', 'cwuri', 'eid'))
   153                               )
   153                               )
   154 
   154