Esempio n. 1
0
 def testWrongClientSecretsFormat(self):
     client_secrets = os.path.join(
         os.path.dirname(__file__),
         'testdata/noninstalled_client_secrets.json')
     with self.assertRaises(ValueError):
         oauth2l.GetClientInfoFromFile(client_secrets)
Esempio n. 2
0
 def testMissingClientSecrets(self):
     with self.assertRaises(ValueError):
         oauth2l.GetClientInfoFromFile('/non/existent/file')