Пример #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')