文件操作 - test_drive.py
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python2.7/site-packages/pydrive/test/test_drive.py
编辑文件内容
# -*- coding: utf-8 -*- import unittest from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive class GoogleDriveTest(unittest.TestCase): """Tests basic operations on meta-data information of the linked Google Drive account. """ ga = GoogleAuth('settings/test1.yaml') ga.LocalWebserverAuth() def test_01_About_Request(self): drive = GoogleDrive(self.ga) about_object = drive.GetAbout() self.assertTrue(about_object is not None, "About object not loading.") if __name__ == '__main__': unittest.main()
修改文件时间
将文件时间修改为当前时间的前一年
删除文件