def test_github_error_empty(self): try: raise_github_error("") except tornado.web.HTTPError as exc: assert self.github_error in str(exc) else: assert False
def test_github_error(self): try: raise_github_error("This is a test error") except tornado.web.HTTPError as exc: assert self.github_error + self.error in str(exc) else: assert False