web/test/unittest_views_editforms.py
branchstable
changeset 3771 234b003f0fe0
parent 3757 122a01751d59
child 3777 3ef8cdb5fb1c
child 3930 c0ae3148b893
equal deleted inserted replaced
3770:957e7cffdefb 3771:234b003f0fe0
    42                               [('firstname', 'subject'),
    42                               [('firstname', 'subject'),
    43                                ('surname', 'subject')
    43                                ('surname', 'subject')
    44                                ])
    44                                ])
    45         self.assertListEquals(rbc(e, 'metadata'),
    45         self.assertListEquals(rbc(e, 'metadata'),
    46                               [('last_login_time', 'subject'),
    46                               [('last_login_time', 'subject'),
       
    47                                ('modification_date', 'subject'),
    47                                ('created_by', 'subject'),
    48                                ('created_by', 'subject'),
    48                                ('creation_date', 'subject'),
    49                                ('creation_date', 'subject'),
    49                                ('cwuri', 'subject'),
    50                                ('cwuri', 'subject'),
    50                                ('modification_date', 'subject'),
       
    51                                ('owned_by', 'subject'),
    51                                ('owned_by', 'subject'),
    52                                ('bookmarked_by', 'object'),
    52                                ('bookmarked_by', 'object'),
    53                                ])
    53                                ])
    54         self.assertListEquals(rbc(e, 'generic'),
    54         self.assertListEquals(rbc(e, 'generic'),
    55                               [('primary_email', 'subject'),
    55                               [('primary_email', 'subject'),
    59                                ])
    59                                ])
    60         # owned_by is defined both as subject and object relations on CWUser
    60         # owned_by is defined both as subject and object relations on CWUser
    61         self.assertListEquals(rbc(e, 'generated'),
    61         self.assertListEquals(rbc(e, 'generated'),
    62                               [('use_email', 'subject'),
    62                               [('use_email', 'subject'),
    63                                ('in_state', 'subject'),
    63                                ('in_state', 'subject'),
       
    64                                ('is', 'subject'),
       
    65                                ('is_instance_of', 'subject'),
    64                                ('has_text', 'subject'),
    66                                ('has_text', 'subject'),
    65                                ('identity', 'subject'),
    67                                ('identity', 'subject'),
    66                                ('is', 'subject'),
       
    67                                ('is_instance_of', 'subject'),
       
    68                                ('tags', 'object'),
    68                                ('tags', 'object'),
    69                                ('for_user', 'object'),
    69                                ('for_user', 'object'),
    70                                ('created_by', 'object'),
    70                                ('created_by', 'object'),
    71                                ('wf_info_for', 'object'),
    71                                ('wf_info_for', 'object'),
    72                                ('owned_by', 'object'),
    72                                ('owned_by', 'object'),
    96                                ('test', 'subject'),
    96                                ('test', 'subject'),
    97                                ('description', 'subject'),
    97                                ('description', 'subject'),
    98                                ('salary', 'subject')
    98                                ('salary', 'subject')
    99                                ])
    99                                ])
   100         self.assertListEquals(rbc(e, 'metadata'),
   100         self.assertListEquals(rbc(e, 'metadata'),
   101                               [('created_by', 'subject'),
   101                               [('creation_date', 'subject'),
   102                                ('creation_date', 'subject'),
       
   103                                ('cwuri', 'subject'),
   102                                ('cwuri', 'subject'),
   104                                ('modification_date', 'subject'),
   103                                ('modification_date', 'subject'),
       
   104                                ('created_by', 'subject'),
   105                                ('owned_by', 'subject'),
   105                                ('owned_by', 'subject'),
   106                                ])
   106                                ])
   107         self.assertListEquals(rbc(e, 'generic'),
   107         self.assertListEquals(rbc(e, 'generic'),
   108                               [('travaille', 'subject'),
   108                               [('travaille', 'subject'),
   109                                ('connait', 'object')
   109                                ('connait', 'object')
   110                                ])
   110                                ])
   111         self.assertListEquals(rbc(e, 'generated'),
   111         self.assertListEquals(rbc(e, 'generated'),
   112                               [('has_text', 'subject'),
   112                               [('is', 'subject'),
       
   113                                ('has_text', 'subject'),
   113                                ('identity', 'subject'),
   114                                ('identity', 'subject'),
   114                                ('is', 'subject'),
       
   115                                ('is_instance_of', 'subject'),
   115                                ('is_instance_of', 'subject'),
   116                                ('identity', 'object'),
   116                                ('identity', 'object'),
   117                                ])
   117                                ])
   118 
   118 
   119     def test_edition_form(self):
   119     def test_edition_form(self):