Commit 5f328712 authored by Ivan Tyagov's avatar Ivan Tyagov

stepTic -> tic

parent 63e8260b
...@@ -6555,7 +6555,7 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -6555,7 +6555,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
new_object.__ac_local_roles__ = dict(group=['Assignee']) new_object.__ac_local_roles__ = dict(group=['Assignee'])
new_object.__ac_local_roles_group_id_dict__ = dict(group=('Alternate',)) new_object.__ac_local_roles_group_id_dict__ = dict(group=('Alternate',))
self.stepTic() self.tic()
transaction.commit() transaction.commit()
object_type.newContent(portal_type='Role Information', object_type.newContent(portal_type='Role Information',
...@@ -6569,13 +6569,13 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -6569,13 +6569,13 @@ class TestBusinessTemplate(BusinessTemplateMixin):
template_path_list=('geek_module/1',), template_path_list=('geek_module/1',),
template_portal_type_role_list=('Geek Object',),) template_portal_type_role_list=('Geek Object',),)
self.stepTic() self.tic()
bt.build() bt.build()
self.stepTic() self.tic()
export_dir = tempfile.mkdtemp() export_dir = tempfile.mkdtemp()
try: try:
bt.export(path=export_dir, local=True) bt.export(path=export_dir, local=True)
self.stepTic() self.tic()
new_bt = self.portal.portal_templates.download( new_bt = self.portal.portal_templates.download(
url='file://%s' % export_dir) url='file://%s' % export_dir)
finally: finally:
...@@ -6584,7 +6584,7 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -6584,7 +6584,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
# uninstall role information and paths # uninstall role information and paths
object_type.manage_delObjects([x.id for x in object_type.getRoleInformationList()]) object_type.manage_delObjects([x.id for x in object_type.getRoleInformationList()])
self.portal.geek_module.manage_delObjects(['1']) self.portal.geek_module.manage_delObjects(['1'])
self.stepTic() self.tic()
new_bt.install() new_bt.install()
try: try:
...@@ -6601,7 +6601,7 @@ class TestBusinessTemplate(BusinessTemplateMixin): ...@@ -6601,7 +6601,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
saved_sql_catalog_security_uid_columns saved_sql_catalog_security_uid_columns
types_tool.manage_delObjects(['Geek Object', 'Geek Module']) types_tool.manage_delObjects(['Geek Object', 'Geek Module'])
self.portal.manage_delObjects(['geek_module']) self.portal.manage_delObjects(['geek_module'])
self.stepTic() self.tic()
def test_BusinessTemplateWithTest(self): def test_BusinessTemplateWithTest(self):
sequence_list = SequenceList() sequence_list = SequenceList()
......
...@@ -4481,7 +4481,7 @@ CREATE TABLE alternate_roles_and_users ( ...@@ -4481,7 +4481,7 @@ CREATE TABLE alternate_roles_and_users (
local_roles_group_id='Alternate') local_roles_group_id='Alternate')
self.portal.portal_caches.clearAllCache() self.portal.portal_caches.clearAllCache()
self.stepTic() self.tic()
try: try:
# create two persons and users # create two persons and users
...@@ -4496,7 +4496,7 @@ CREATE TABLE alternate_roles_and_users ( ...@@ -4496,7 +4496,7 @@ CREATE TABLE alternate_roles_and_users (
user2.newContent(portal_type='Assignment').open() user2.newContent(portal_type='Assignment').open()
user2.updateLocalRolesOnSecurityGroups() user2.updateLocalRolesOnSecurityGroups()
self.assertEquals(user2.__ac_local_roles__.get('user2'), ['Auditor']) self.assertEquals(user2.__ac_local_roles__.get('user2'), ['Auditor'])
self.stepTic() self.tic()
# security_uid_dict in catalog contains entries for user1 and user2: # security_uid_dict in catalog contains entries for user1 and user2:
user1_alternate_security_uid = sql_catalog.security_uid_dict[ user1_alternate_security_uid = sql_catalog.security_uid_dict[
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment