# pydrive.test package

## Submodules

## pydrive.test.test_apiattr module

class `pydrive.test.test_apiattr.``ApiAttributeTest`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  Test ApiAttr functions.

  `first_file` = 'a.png'
  `ga` = <pydrive.auth.GoogleAuth object>
  `second_file` = 'b.png'
  `setUp`()
  `tearDown`()
  `test_UpdateMetadataNotInfinitelyNesting`()

## pydrive.test.test_drive module

## pydrive.test.test_file module

class `pydrive.test.test_file.``GoogleDriveFileTest`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  Tests basic file operations of files.GoogleDriveFile. Mainly upload and download of contents and metadata. Equivalent to Files.insert, Files.update, Files.patch in Google Drive API.

  `DeleteOldFile`(file_name)
  `DeleteUploadedFiles`(drive, ids)
  class `UploadWorker`(gdrive_file, generate_http=False)
    `run`()
  `GoogleDriveFileTest.``first_file` = 'a.png'
  `GoogleDriveFileTest.``ga` = <pydrive.auth.GoogleAuth object>
  `GoogleDriveFileTest.``second_file` = 'b.png'
  `GoogleDriveFileTest.``test_01_Files_Insert`()
  `GoogleDriveFileTest.``test_02_Files_Insert_Unicode`()
  `GoogleDriveFileTest.``test_03_Files_Insert_Content_String`()
  `GoogleDriveFileTest.``test_04_Files_Insert_Content_Unicode_String`()
  `GoogleDriveFileTest.``test_05_Files_Insert_Content_File`()
  `GoogleDriveFileTest.``test_06_Files_Patch`()
  `GoogleDriveFileTest.``test_07_Files_Patch_Skipping_Content`()
  `GoogleDriveFileTest.``test_08_Files_Update_String`()
  `GoogleDriveFileTest.``test_09_Files_Update_File`()
  `GoogleDriveFileTest.``test_Files_Create_Parameter_UserPermission`()
  `GoogleDriveFileTest.``test_Files_Delete_File`()
  `GoogleDriveFileTest.``test_Files_Delete_File_Just_ID`()
  `GoogleDriveFileTest.``test_Files_Trash_File`()
  `GoogleDriveFileTest.``test_Files_Trash_File_Just_ID`()
  `GoogleDriveFileTest.``test_Files_UnTrash_File`()
  `GoogleDriveFileTest.``test_Files_UnTrash_File_Just_ID`()
  `GoogleDriveFileTest.``test_Parallel_Files_Insert_File_Auto_Generated_HTTP`(*args, **kwargs)
  `GoogleDriveFileTest.``test_Parallel_Insert_File_Passed_HTTP`(*args, **kwargs)

## pydrive.test.test_filelist module

class `pydrive.test.test_filelist.``GoogleDriveFileListTest`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  Tests operations of files.GoogleDriveFileList class. Equivalent to Files.list in Google Drive API.

  `DeleteOldFile`(file_name)
  `assertFileInFileList`(file_object)
  `drive` = <pydrive.drive.GoogleDrive object>
  `ga` = <pydrive.auth.GoogleAuth object>
  `setUp`()
  `tearDown`()
  `test_01_Files_List_GetList`()
  `test_02_Files_List_ForLoop`()
  `test_03_Files_List_GetList_Iterate`()
  `test_File_List_Folders`()

## pydrive.test.test_oauth module

class `pydrive.test.test_oauth.``GoogleAuthTest`(methodName='runTest')

  Bases: `unittest.case.TestCase`

  Tests basic OAuth2 operations of auth.GoogleAuth.

  `CheckCredentialsFile`(credentials, no_file=False)
  `DeleteOldCredentialsFile`(credentials)
  `test_01_LocalWebserverAuthWithClientConfigFromFile`()
  `test_02_LocalWebserverAuthWithClientConfigFromSettings`()
  `test_03_LocalWebServerAuthWithNoCredentialsSaving`()
  `test_04_CommandLineAuthWithClientConfigFromFile`()
  `test_05_ConfigFromSettingsWithoutOauthScope`()

## pydrive.test.test_util module

`pydrive.test.test_util.``CreateRandomFileName`()

## Module contents