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)
def testMissingClientSecrets(self): with self.assertRaises(ValueError): oauth2l.GetClientInfoFromFile('/non/existent/file')