def testDownloadBot(self):
self.SetUpWorkdir(populate_bucket=True, bot_env=True)
# No need to type 'y' on bots
status = update.main([
'download',
'--dry-run',
'--bucket', self.paths.bucket,
'--config', self.paths.config_file,
'--sdk-root', self.paths.gms.sdk_root,
])
self.assertEqual(status, 0, 'the command should have succeeded.')
# sdk_root should contain zip contents, zip sha1, license
self.assertTrue(os.path.isfile(self.paths.gms.client_paths[0]))
self.assertTrue(os.path.isfile(self.paths.gms.lib_zip_sha1))
self.assertTrue(os.path.isfile(self.paths.gms.license))
self.assertEquals(_GetFileContent(self.paths.gms.license),
self.DEFAULT_LICENSE)
评论列表
文章目录