示例#1
0
 def test_actions__user__information__permissions(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.permissions, ('View', ))
示例#2
0
 def test_actions__user__information__meta_type(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.meta_type, 'CMF Action')
示例#3
0
 def test_actions__user__information__descripion(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.description, '')
示例#4
0
 def test_actions__user__orders__descripion(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.description, '')
示例#5
0
 def test_actions__user__orders__visible(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertTrue(action.visible)
示例#6
0
 def test_actions__user__addresses__url_expr(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(
         action.url_expr,
         'string:${portal/portal_membership/getHomeUrl}/@@address-listing')
示例#7
0
 def test_actions__user__orders__i18n_domain(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.i18n_domain, 'slt.policy')
示例#8
0
 def test_actions__user__information__descripion(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.description, '')
示例#9
0
 def test_actions__user__information__url_expr(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.url_expr,
         'string:${globals_view/navigationRootUrl}/@@personal-information')
示例#10
0
 def test_actions__user__information__meta_type(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.meta_type, 'CMF Action')
示例#11
0
 def test_actions__user__information__title(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.title, 'Personal Information')
示例#12
0
 def test_actions__user__information__i18n_domain(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.i18n_domain, 'slt.policy')
示例#13
0
 def test_actions__user__orders__visible(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertTrue(action.visible)
示例#14
0
 def test_actions__user__orders__url_expr(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.url_expr, 'string:${portal/portal_membership/getHomeUrl}')
示例#15
0
 def test_actions__user__preferences__permissions(self):
     action = get_action(self.portal, 'user', 'preferences')
     self.assertEqual(action.permissions,
                      ('slt.theme: View Personal Preferences', ))
示例#16
0
 def test_actions__user__information__permissions(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.permissions, ('View',))
示例#17
0
 def test_actions__user__addresses__title(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.title, 'Addresses')
示例#18
0
 def test_actions__user__information__visible(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertTrue(action.visible)
示例#19
0
 def test_actions__user__addresses__permissions(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.permissions, ('View', ))
示例#20
0
 def test_actions__user__preferences__permissions(self):
     action = get_action(self.portal, 'user', 'preferences')
     self.assertEqual(action.permissions, ('slt.theme: View Personal Preferences',))
示例#21
0
 def test_actions__user__orders__descripion(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.description, '')
示例#22
0
 def test_actions__user__preferences__visible(self):
     action = get_action(self.portal, 'user', 'preferences')
     self.assertTrue(action.visible)
示例#23
0
 def test_actions__user__orders__url_expr(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.url_expr,
                      'string:${portal/portal_membership/getHomeUrl}')
示例#24
0
 def test_actions__user__addresses__title(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.title, 'Addresses')
示例#25
0
 def test_actions__user__information__i18n_domain(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.i18n_domain, 'slt.policy')
示例#26
0
 def test_actions__user__addresses__descripion(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.description, '')
示例#27
0
 def test_actions__user__information__title(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.title, 'Personal Information')
示例#28
0
 def test_actions__user__addresses__url_expr(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.url_expr,
         'string:${portal/portal_membership/getHomeUrl}/@@address-listing')
示例#29
0
 def test_actions__user__information__url_expr(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(
         action.url_expr,
         'string:${globals_view/navigationRootUrl}/@@personal-information')
示例#30
0
 def test_actions__user__addresses__available_expr(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.available_expr, 'python:member is not None')
示例#31
0
 def test_actions__user__information__visible(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertTrue(action.visible)
示例#32
0
 def test_actions__user__addresses__permissions(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.permissions, ('View',))
示例#33
0
 def test_actions__user__preferences__visible(self):
     action = get_action(self.portal, 'user', 'preferences')
     self.assertTrue(action.visible)
示例#34
0
 def test_actions__user__addresses__visible(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertTrue(action.visible)
示例#35
0
 def test_actions__user__addresses__descripion(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.description, '')
示例#36
0
 def test_actions__user__orders__i18n_domain(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.i18n_domain, 'slt.policy')
示例#37
0
 def test_actions__user__addresses__available_expr(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.available_expr, 'python:member is not None')
示例#38
0
 def test_actions__user__orders__meta_type(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.meta_type, 'CMF Action')
示例#39
0
 def test_actions__user__addresses__visible(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertTrue(action.visible)
示例#40
0
 def test_actions__user__orders__title(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.title, 'Orders')
示例#41
0
 def test_actions__user__orders__meta_type(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.meta_type, 'CMF Action')
示例#42
0
 def test_actions__user__orders__title(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.title, 'Orders')