Exemple #1
0
 def __call__(self, url, token, http_conn=None):
     self.count += 1
     if self.count == 1:
         raise swift.ClientException("Some 500 Error", http_status=500)
     if self.count == 2:
         raise swift.ClientException("Some 401 Error", http_status=401)
     return ''
Exemple #2
0
 def __call__(self, url, token, http_conn=None):
     self.count += 1
     raise swift.ClientException("Some 400 Error", http_status=400)