equal
deleted
inserted
replaced
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 |