Skip to content
Snippets Groups Projects
Commit 78b28e0875e2 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

backport stable

No related branches found
No related tags found
No related merge requests found
...@@ -30,11 +30,10 @@ ...@@ -30,11 +30,10 @@
self.assertEquals(rbc(afs.relations_by_section(e, 'main', 'attributes', 'update')), self.assertEquals(rbc(afs.relations_by_section(e, 'main', 'attributes', 'update')),
[('title', 'subject'), ('url', 'subject'), [('title', 'subject'), ('url', 'subject'),
('embed', 'subject'), ('embed', 'subject'),
('description', 'subject'), ('description', 'subject')])
('eid', 'subject')])
self.create_user('toto') self.create_user('toto')
self.login('toto') self.login('toto')
# create a new instance with the new connection # create a new instance with the new connection
e = self.vreg["etypes"].etype_class('Link')(self.request()) e = self.vreg["etypes"].etype_class('Link')(self.request())
self.assertEquals(rbc(afs.relations_by_section(e, 'main', 'attributes', 'update')), self.assertEquals(rbc(afs.relations_by_section(e, 'main', 'attributes', 'update')),
[('title', 'subject'), ('url', 'subject'), [('title', 'subject'), ('url', 'subject'),
...@@ -35,11 +34,10 @@ ...@@ -35,11 +34,10 @@
self.create_user('toto') self.create_user('toto')
self.login('toto') self.login('toto')
# create a new instance with the new connection # create a new instance with the new connection
e = self.vreg["etypes"].etype_class('Link')(self.request()) e = self.vreg["etypes"].etype_class('Link')(self.request())
self.assertEquals(rbc(afs.relations_by_section(e, 'main', 'attributes', 'update')), self.assertEquals(rbc(afs.relations_by_section(e, 'main', 'attributes', 'update')),
[('title', 'subject'), ('url', 'subject'), [('title', 'subject'), ('url', 'subject'),
('description', 'subject'), ('description', 'subject')])
('eid', 'subject')])
if __name__ == '__main__': if __name__ == '__main__':
from logilab.common.testlib import unittest_main from logilab.common.testlib import unittest_main
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment