Exemple #1
0
 def test_actions__user__information__permissions(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.permissions, ('View', ))
Exemple #2
0
 def test_actions__user__information__meta_type(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.meta_type, 'CMF Action')
Exemple #3
0
 def test_actions__user__information__descripion(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.description, '')
Exemple #4
0
 def test_actions__user__orders__descripion(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.description, '')
Exemple #5
0
 def test_actions__user__orders__visible(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertTrue(action.visible)
Exemple #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')
Exemple #7
0
 def test_actions__user__orders__i18n_domain(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.i18n_domain, 'slt.policy')
Exemple #8
0
 def test_actions__user__information__descripion(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.description, '')
Exemple #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')
Exemple #10
0
 def test_actions__user__information__meta_type(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.meta_type, 'CMF Action')
Exemple #11
0
 def test_actions__user__information__title(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.title, 'Personal Information')
Exemple #12
0
 def test_actions__user__information__i18n_domain(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.i18n_domain, 'slt.policy')
Exemple #13
0
 def test_actions__user__orders__visible(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertTrue(action.visible)
Exemple #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}')
Exemple #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', ))
Exemple #16
0
 def test_actions__user__information__permissions(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.permissions, ('View',))
Exemple #17
0
 def test_actions__user__addresses__title(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.title, 'Addresses')
Exemple #18
0
 def test_actions__user__information__visible(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertTrue(action.visible)
Exemple #19
0
 def test_actions__user__addresses__permissions(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.permissions, ('View', ))
Exemple #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',))
Exemple #21
0
 def test_actions__user__orders__descripion(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.description, '')
Exemple #22
0
 def test_actions__user__preferences__visible(self):
     action = get_action(self.portal, 'user', 'preferences')
     self.assertTrue(action.visible)
Exemple #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}')
Exemple #24
0
 def test_actions__user__addresses__title(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.title, 'Addresses')
Exemple #25
0
 def test_actions__user__information__i18n_domain(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.i18n_domain, 'slt.policy')
Exemple #26
0
 def test_actions__user__addresses__descripion(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.description, '')
Exemple #27
0
 def test_actions__user__information__title(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertEqual(action.title, 'Personal Information')
Exemple #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')
Exemple #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')
Exemple #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')
Exemple #31
0
 def test_actions__user__information__visible(self):
     action = get_action(self.portal, 'user', 'information')
     self.assertTrue(action.visible)
Exemple #32
0
 def test_actions__user__addresses__permissions(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.permissions, ('View',))
Exemple #33
0
 def test_actions__user__preferences__visible(self):
     action = get_action(self.portal, 'user', 'preferences')
     self.assertTrue(action.visible)
Exemple #34
0
 def test_actions__user__addresses__visible(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertTrue(action.visible)
Exemple #35
0
 def test_actions__user__addresses__descripion(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertEqual(action.description, '')
Exemple #36
0
 def test_actions__user__orders__i18n_domain(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.i18n_domain, 'slt.policy')
Exemple #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')
Exemple #38
0
 def test_actions__user__orders__meta_type(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.meta_type, 'CMF Action')
Exemple #39
0
 def test_actions__user__addresses__visible(self):
     action = get_action(self.portal, 'user', 'addresses')
     self.assertTrue(action.visible)
Exemple #40
0
 def test_actions__user__orders__title(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.title, 'Orders')
Exemple #41
0
 def test_actions__user__orders__meta_type(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.meta_type, 'CMF Action')
Exemple #42
0
 def test_actions__user__orders__title(self):
     action = get_action(self.portal, 'user', 'orders')
     self.assertEqual(action.title, 'Orders')