def _generate_badge(self, subject, status):
url = '<STR_LIT>''<STR_LIT>' % (subject, status)<EOL>logger.debug("<STR_LIT>", subject, status, url)<EOL>res = requests.get(url)<EOL>if res.status_code != <NUM_LIT:200>:<EOL><INDENT>raise Exception("<STR_LIT>",<EOL>res.status_code, res.text)<EOL><DEDENT>logger.debug('<STR_LIT>', len(res.text))<EOL>return res.text<EOL>
Generate SVG for one badge via shields.io.

:param subject: subject; left-hand side of badge
:type subject: str
:param status: status; right-hand side of badge
:type status: str
:return: badge SVG
:rtype: str