def test_create_company(self): editor = BranchEditor(self.store, role_type=Person.ROLE_COMPANY) self.check_editor(editor, 'editor-branch-company-create')
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')
def test_create_individual(self): editor = BranchEditor(self.store, role_type=Person.ROLE_INDIVIDUAL) self.check_editor(editor, 'editor-branch-individual-create')