Ejemplo n.º 1
0
 def runTest(self):
     response = RestClient.get(url=bitcodin.get_api_base()+'/statistics/2000-12-24/2100-12-24', headers=bitcodin.create_headers())
 def runTest(self):
     headers = create_headers()
     url = get_api_base() + '/MY_SUPER_FANCY_UNDEFINED_URL/'
     with self.assertRaises(BitcodinUnknownApiRequestUrlError):
         response = RestClient.post(url=url, headers=headers)
Ejemplo n.º 3
0
 def runTest(self):
     headers = create_headers()
     url = get_api_base() + '/MY_SUPER_FANCY_UNDEFINED_URL/'
     with self.assertRaises(BitcodinBadRequestError):
         response = RestClient.post(url=url, headers=headers)
 def runTest(self):
     headers = create_headers()
     url = get_api_base() + '/MY_SUPER_FANCY_UNDEFINED_URL/'
     with self.assertRaises(BitcodinNotFoundError):
         response = RestClient.delete(url=url, headers=headers)
 def runTest(self):
     with self.assertRaises(BitcodinNotFoundError):
         response = RestClient.get(url=bitcodin.get_api_base(), headers=bitcodin.create_headers())
 def runTest(self):
     with self.assertRaises(BitcodinUnknownApiRequestUrlError):
         response = RestClient.get(url=bitcodin.get_api_base(), headers=bitcodin.create_headers())
Ejemplo n.º 7
0
 def runTest(self):
     with self.assertRaises(BitcodinApiKeyNotAuthorizedError):
         response = RestClient.get(url=bitcodin.get_api_base(),
                                   headers=bitcodin.create_headers())