web/test/unittest_viewselector.py
changeset 10664 6465a3e9d7ac
parent 10589 7c23b7de2b8d
child 10704 73367a56ee41
equal deleted inserted replaced
10663:54b8a1f249fb 10664:6465a3e9d7ac
   475             ):
   475             ):
   476             self._test_view(vid, rql, args)
   476             self._test_view(vid, rql, args)
   477 
   477 
   478 
   478 
   479     def test_properties(self):
   479     def test_properties(self):
   480         self.assertEqual(sorted(k for k in self.vreg['propertydefs'].iterkeys()
   480         self.assertEqual(sorted(k for k in self.vreg['propertydefs']
   481                                 if k.startswith('ctxcomponents.edit_box')),
   481                                 if k.startswith('ctxcomponents.edit_box')),
   482                          ['ctxcomponents.edit_box.context',
   482                          ['ctxcomponents.edit_box.context',
   483                           'ctxcomponents.edit_box.order',
   483                           'ctxcomponents.edit_box.order',
   484                           'ctxcomponents.edit_box.visible'])
   484                           'ctxcomponents.edit_box.visible'])
   485         self.assertEqual([k for k in self.vreg['propertyvalues'].iterkeys()
   485         self.assertEqual([k for k in self.vreg['propertyvalues']
   486                           if not k.startswith('system.version')],
   486                           if not k.startswith('system.version')],
   487                          [])
   487                          [])
   488         self.assertEqual(self.vreg.property_value('ctxcomponents.edit_box.visible'), True)
   488         self.assertEqual(self.vreg.property_value('ctxcomponents.edit_box.visible'), True)
   489         self.assertEqual(self.vreg.property_value('ctxcomponents.edit_box.order'), 2)
   489         self.assertEqual(self.vreg.property_value('ctxcomponents.edit_box.order'), 2)
   490         self.assertEqual(self.vreg.property_value('ctxcomponents.possible_views_box.visible'), False)
   490         self.assertEqual(self.vreg.property_value('ctxcomponents.possible_views_box.visible'), False)