Example #1
0
 def test_client_httpnotfound_converts_to_imagenotfound(self):
     in_exc = glanceclient.exc.HTTPNotFound('123')
     out_exc = glance._translate_image_exception('123', in_exc)
     self.assertIsInstance(out_exc, exception.ImageNotFound)
Example #2
0
 def test_client_httpnotfound_converts_to_imagenotfound(self):
     in_exc = glanceclient.exc.HTTPNotFound('123')
     out_exc = glance._translate_image_exception('123', in_exc)
     self.assertIsInstance(out_exc, exception.ImageNotFound)
Example #3
0
 def test_client_httpforbidden_converts_to_imagenotauthed(self):
     in_exc = glanceclient.exc.HTTPForbidden('123')
     out_exc = glance._translate_image_exception('123', in_exc)
     self.assertIsInstance(out_exc, exception.ImageNotAuthorized)
Example #4
0
 def test_client_httpforbidden_converts_to_imagenotauthed(self):
     in_exc = glanceclient.exc.HTTPForbidden('123')
     out_exc = glance._translate_image_exception('123', in_exc)
     self.assertIsInstance(out_exc, exception.ImageNotAuthorized)