web/test/unittest_application.py
changeset 9861 e90ff9d594e5
parent 9674 96549de9dd70
child 9862 f97a65c29d82
equal deleted inserted replaced
9860:e24bf60428d3 9861:e90ff9d594e5
   180             cnx.execute('DELETE X in_group G WHERE X eid %s, G name "guests"' % user.eid)
   180             cnx.execute('DELETE X in_group G WHERE X eid %s, G name "guests"' % user.eid)
   181             cnx.commit()
   181             cnx.commit()
   182 
   182 
   183     def test_publish_validation_error(self):
   183     def test_publish_validation_error(self):
   184         with self.admin_access.web_request() as req:
   184         with self.admin_access.web_request() as req:
   185             user = self.user()
   185             user = self.user(req)
   186             eid = unicode(user.eid)
   186             eid = unicode(user.eid)
   187             req.form = {
   187             req.form = {
   188                 'eid':       eid,
   188                 'eid':       eid,
   189                 '__type:'+eid:    'CWUser', '_cw_entity_fields:'+eid: 'login-subject',
   189                 '__type:'+eid:    'CWUser', '_cw_entity_fields:'+eid: 'login-subject',
   190                 'login-subject:'+eid:     '', # ERROR: no login specified
   190                 'login-subject:'+eid:     '', # ERROR: no login specified