equal
deleted
inserted
replaced
172 user = self.user() |
172 user = self.user() |
173 self.assertEqual(user.groups, set(('managers', 'guests'))) |
173 self.assertEqual(user.groups, set(('managers', 'guests'))) |
174 # cleanup |
174 # cleanup |
175 self.execute('DELETE X in_group G WHERE X eid %s, G name "guests"' % user.eid) |
175 self.execute('DELETE X in_group G WHERE X eid %s, G name "guests"' % user.eid) |
176 self.commit() |
176 self.commit() |
177 |
|
178 def test_nonregr_publish1(self): |
|
179 req = self.request(u'CWEType X WHERE X final FALSE, X meta FALSE') |
|
180 self.app.handle_request(req, 'view') |
|
181 |
|
182 def test_nonregr_publish2(self): |
|
183 req = self.request(u'Any count(N) WHERE N todo_by U, N is Note, U eid %s' |
|
184 % self.user().eid) |
|
185 self.app.handle_request(req, 'view') |
|
186 |
177 |
187 def test_publish_validation_error(self): |
178 def test_publish_validation_error(self): |
188 req = self.request() |
179 req = self.request() |
189 user = self.user() |
180 user = self.user() |
190 eid = unicode(user.eid) |
181 eid = unicode(user.eid) |