def get_case_template(self, name):
req = self.url + "<STR_LIT>"<EOL>data = {<EOL>"<STR_LIT>": And(Eq("<STR_LIT:name>", name), Eq("<STR_LIT:status>", "<STR_LIT>"))<EOL>}<EOL>try:<EOL><INDENT>response = requests.post(req, json=data, proxies=self.proxies, auth=self.auth, verify=self.cert)<EOL>json_response = response.json()<EOL>if response.status_code == <NUM_LIT:200> and len(json_response) > <NUM_LIT:0>:<EOL><INDENT>return response.json()[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>raise CaseTemplateException("<STR_LIT>".format(name))<EOL><DEDENT><DEDENT>except requests.exceptions.RequestException as e:<EOL><INDENT>raise CaseTemplateException("<STR_LIT>".format(e))<EOL><DEDENT>
:param name: Case template name
:return: TheHive case template
:rtype: json