コード例 #1
0
 def test_malformed_credentials(self):
   with self.assertRaises(httplib2_utils.AuthError):
     httplib2_utils.get_authenticated_http(
       'creds_malformed.json',
       service_accounts_creds_root=DATA_DIR)
コード例 #2
0
 def test_malformed_credentials(self):
     with self.assertRaises(httplib2_utils.AuthError):
         httplib2_utils.get_authenticated_http(
             'creds_malformed.json', service_accounts_creds_root=DATA_DIR)
コード例 #3
0
 def test_valid_credentials(self):
   http = httplib2_utils.get_authenticated_http(
     'valid_creds.json',
     service_accounts_creds_root=DATA_DIR)
   self.assertIsInstance(http, httplib2.Http)
コード例 #4
0
 def test_valid_credentials(self):
     http = httplib2_utils.get_authenticated_http(
         'valid_creds.json', service_accounts_creds_root=DATA_DIR)
     self.assertIsInstance(http, httplib2.Http)