Exemplo n.º 1
0
    def test_raise_http_exception(self):
        def raise_http_exception():
            raise errors.HTTPException('fakeraw')

        self.assertRaises(errors.HTTPException, raise_http_exception)
        http_exception = errors.HTTPException('fakeraw')
        self.assertEqual(http_exception.message, str(http_exception))
Exemplo n.º 2
0
 def raise_http_exception():
     raise errors.HTTPException('fakeraw')