Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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