43 [('firstname', 'subject'), |
43 [('firstname', 'subject'), |
44 ('surname', 'subject') |
44 ('surname', 'subject') |
45 ]) |
45 ]) |
46 self.assertListEquals(rbc(e, 'metadata'), |
46 self.assertListEquals(rbc(e, 'metadata'), |
47 [('last_login_time', 'subject'), |
47 [('last_login_time', 'subject'), |
|
48 ('modification_date', 'subject'), |
48 ('created_by', 'subject'), |
49 ('created_by', 'subject'), |
49 ('creation_date', 'subject'), |
50 ('creation_date', 'subject'), |
50 ('cwuri', 'subject'), |
51 ('cwuri', 'subject'), |
51 ('modification_date', 'subject'), |
|
52 ('owned_by', 'subject'), |
52 ('owned_by', 'subject'), |
53 ('bookmarked_by', 'object'), |
53 ('bookmarked_by', 'object'), |
54 ]) |
54 ]) |
55 self.assertListEquals(rbc(e, 'generic'), |
55 self.assertListEquals(rbc(e, 'generic'), |
56 [('primary_email', 'subject'), |
56 [('primary_email', 'subject'), |
60 ]) |
60 ]) |
61 # owned_by is defined both as subject and object relations on CWUser |
61 # owned_by is defined both as subject and object relations on CWUser |
62 self.assertListEquals(rbc(e, 'generated'), |
62 self.assertListEquals(rbc(e, 'generated'), |
63 [('use_email', 'subject'), |
63 [('use_email', 'subject'), |
64 ('in_state', 'subject'), |
64 ('in_state', 'subject'), |
|
65 ('is', 'subject'), |
|
66 ('is_instance_of', 'subject'), |
65 ('has_text', 'subject'), |
67 ('has_text', 'subject'), |
66 ('identity', 'subject'), |
68 ('identity', 'subject'), |
67 ('is', 'subject'), |
|
68 ('is_instance_of', 'subject'), |
|
69 ('tags', 'object'), |
69 ('tags', 'object'), |
70 ('for_user', 'object'), |
70 ('for_user', 'object'), |
71 ('created_by', 'object'), |
71 ('created_by', 'object'), |
72 ('wf_info_for', 'object'), |
72 ('wf_info_for', 'object'), |
73 ('owned_by', 'object'), |
73 ('owned_by', 'object'), |
97 ('test', 'subject'), |
97 ('test', 'subject'), |
98 ('description', 'subject'), |
98 ('description', 'subject'), |
99 ('salary', 'subject') |
99 ('salary', 'subject') |
100 ]) |
100 ]) |
101 self.assertListEquals(rbc(e, 'metadata'), |
101 self.assertListEquals(rbc(e, 'metadata'), |
102 [('created_by', 'subject'), |
102 [('creation_date', 'subject'), |
103 ('creation_date', 'subject'), |
|
104 ('cwuri', 'subject'), |
103 ('cwuri', 'subject'), |
105 ('modification_date', 'subject'), |
104 ('modification_date', 'subject'), |
|
105 ('created_by', 'subject'), |
106 ('owned_by', 'subject'), |
106 ('owned_by', 'subject'), |
107 ]) |
107 ]) |
108 self.assertListEquals(rbc(e, 'generic'), |
108 self.assertListEquals(rbc(e, 'generic'), |
109 [('travaille', 'subject'), |
109 [('travaille', 'subject'), |
110 ('connait', 'object') |
110 ('connait', 'object') |
111 ]) |
111 ]) |
112 self.assertListEquals(rbc(e, 'generated'), |
112 self.assertListEquals(rbc(e, 'generated'), |
113 [('has_text', 'subject'), |
113 [('is', 'subject'), |
|
114 ('has_text', 'subject'), |
114 ('identity', 'subject'), |
115 ('identity', 'subject'), |
115 ('is', 'subject'), |
|
116 ('is_instance_of', 'subject'), |
116 ('is_instance_of', 'subject'), |
117 ('identity', 'object'), |
117 ('identity', 'object'), |
118 ]) |
118 ]) |
119 |
119 |
120 def test_edition_form(self): |
120 def test_edition_form(self): |