def _get_one_template(self, exclude=None):
template_list = self.client.get_template_list()<EOL>if not template_list or len(template_list) == <NUM_LIT:0>:<EOL><INDENT>self.fail('<STR_LIT>')<EOL><DEDENT>if exclude is None:<EOL><INDENT>return template_list[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>for t in template_list:<EOL><INDENT>if t.template_id != exclude.template_id:<EOL><INDENT>return t<EOL><DEDENT><DEDENT>self.fail('<STR_LIT>')<EOL><DEDENT>
Get one template from the current account