Example #1
0
 def test_create_company(self):
     editor = BranchEditor(self.store, role_type=Person.ROLE_COMPANY)
     self.check_editor(editor, 'editor-branch-company-create')
Example #2
0
 def test_edit_company(self):
     branch = api.sysparam.get_object(self.store, 'MAIN_COMPANY')
     editor = BranchEditor(self.store,
                           branch,
                           role_type=Person.ROLE_COMPANY)
     self.check_editor(editor, 'editor-branch-edit')
Example #3
0
 def test_create_individual(self):
     editor = BranchEditor(self.store, role_type=Person.ROLE_INDIVIDUAL)
     self.check_editor(editor, 'editor-branch-individual-create')