equal
deleted
inserted
replaced
51 self.execute('SET X tags Y WHERE X is Tag, Y is BlogEntry') |
51 self.execute('SET X tags Y WHERE X is Tag, Y is BlogEntry') |
52 unrelated = [reid for rview, reid in form1.subject_relation_vocabulary('tags')] |
52 unrelated = [reid for rview, reid in form1.subject_relation_vocabulary('tags')] |
53 self.failIf(b.eid in unrelated, unrelated) |
53 self.failIf(b.eid in unrelated, unrelated) |
54 unrelated = [reid for rview, reid in form2.object_relation_vocabulary('tags')] |
54 unrelated = [reid for rview, reid in form2.object_relation_vocabulary('tags')] |
55 self.failIf(t.eid in unrelated, unrelated) |
55 self.failIf(t.eid in unrelated, unrelated) |
|
56 |
56 |
57 |
57 def test_form_field_vocabulary_new_entity(self): |
58 def test_form_field_vocabulary_new_entity(self): |
58 e = self.vreg['etypes'].etype_class('CWUser')(self.request()) |
59 e = self.vreg['etypes'].etype_class('CWUser')(self.request()) |
59 form = EntityFieldsForm(e.req, None, entity=e) |
60 form = EntityFieldsForm(e.req, None, entity=e) |
60 unrelated = [rview for rview, reid in form.subject_relation_vocabulary('in_group')] |
61 unrelated = [rview for rview, reid in form.subject_relation_vocabulary('in_group')] |