Module ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Import alias identifier ImportFrom alias If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr Str body Import alias identifier Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args defaults body Return BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad decorator_list Assign NameStore Call NameLoad FunctionDef arguments args defaults body Return CompareIsNot Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad NameLoad decorator_list Assign NameStore Call NameLoad FunctionDef arguments args defaults body Return CompareIsNot Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad NameLoad decorator_list Assign NameStore Call NameLoad FunctionDef arguments args defaults body Return CompareNotEq Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Str attr Str decorator_list Assign NameStore Call NameLoad FunctionDef arguments args defaults body Assign NameStore NameLoad TryExcept body Import alias handlers ExceptHandler type NameLoad body Pass Return CompareIsNot NameLoad NameLoad decorator_list Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Assign SubscriptStore NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Str body Return Str Return BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg body Expr Str If Call NameLoad NameLoad NameLoad body Return BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Return BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad Call AttributeLoad Str attr BinOpAdd ListLoad NameLoad Call NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str Str Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Assign NameStore Call NameLoad ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore NameLoad body If CompareIs NameLoad NameLoad body If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Expr Call NameLoad NameLoad NameLoad If BoolOpAnd UnaryOpNot NameLoad Call NameLoad NameLoad body With Call NameLoad ListLoad TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str body Expr Call NameLoad NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict For NameStore NameLoad body Assign TupleStore NameStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Dict If CompareIsNot NameLoad NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str With Call NameLoad NameLoad Str NameStore body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore NameLoad TryFinally body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body For NameStore NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call NameLoad Call NameLoad NameLoad NameLoad With Call NameLoad NameLoad body Expr Yield finalbody Expr Call NameLoad NameLoad If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Pass decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIsNot NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TryFinally body Expr Call NameLoad NameLoad Expr Yield finalbody Expr Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad TryFinally body Expr Yield finalbody If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad For TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad TryFinally body Expr Yield finalbody If BoolOpAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad
N/A __future__ absolute_import contextlib contextmanager N/A functools N/A os N/A pkgutil N/A posixpath N/A re N/A tempfile N/A unittest N/A urlparse N/A boto N/A crcmod gslib.encryption_helper Base64Sha256FromBase64EncryptionKey N/A gslib.tests gslib_tests gslib.util UsingCrcmodExtension N/A N/A N/A hasattr N/A unittest TestCase assertIsNone N/A N/A unittest2 unittest N/A TEST_ENCRYPTION_KEY1 iMSM9eeXliDZHSBJZO71R98tfeW/+87VXTpk5chGd6Y= N/A TEST_ENCRYPTION_KEY1_SHA256_B64 N/A Base64Sha256FromBase64EncryptionKey TEST_ENCRYPTION_KEY1 N/A TEST_ENCRYPTION_KEY2 4TSaQ3S4U+5oxAbByA7HgIigD51zfzGed/c03Ts2TXc= N/A TEST_ENCRYPTION_KEY2_SHA256_B64 N/A Base64Sha256FromBase64EncryptionKey TEST_ENCRYPTION_KEY2 N/A TEST_ENCRYPTION_KEY3 HO4Q2X28N/6SmuAJ1v1CTuJjf5emQcXf7YriKzT1gj0= N/A TEST_ENCRYPTION_KEY3_SHA256_B64 N/A Base64Sha256FromBase64EncryptionKey TEST_ENCRYPTION_KEY3 N/A TEST_ENCRYPTION_KEY4 U6zIErjZCK/IpIeDS0pJrDayqlZurY8M9dvPJU0SXI8= N/A TEST_ENCRYPTION_KEY4_SHA256_B64 N/A Base64Sha256FromBase64EncryptionKey TEST_ENCRYPTION_KEY4 N/A TEST_ENCRYPTION_CONTENT1 bar N/A TEST_ENCRYPTION_CONTENT1_MD5 N7UdGUp1E+RbVvZSTy1R8g== N/A TEST_ENCRYPTION_CONTENT1_CRC32C CrcTMQ== N/A TEST_ENCRYPTION_CONTENT2 bar2 N/A TEST_ENCRYPTION_CONTENT2_MD5 Ik4lOfUiA+szcorNIotEMg== N/A TEST_ENCRYPTION_CONTENT2_CRC32C QScXtg== N/A TEST_ENCRYPTION_CONTENT3 bar3 N/A TEST_ENCRYPTION_CONTENT3_MD5 9iW6smjfu9hm0A//VQTQfw== N/A TEST_ENCRYPTION_CONTENT3_CRC32C s0yUtQ== N/A TEST_ENCRYPTION_CONTENT4 bar4 N/A TEST_ENCRYPTION_CONTENT4_MD5 kPCx6uZiUOU7W6E+cDCZFg== N/A TEST_ENCRYPTION_CONTENT4_CRC32C Z4bwXg== N/A TEST_ENCRYPTION_CONTENT5 bar5 N/A TEST_ENCRYPTION_CONTENT5_MD5 758XbXQOVkp8fTKMm83NXA== N/A TEST_ENCRYPTION_CONTENT5_CRC32C le1zXQ== N/A RUN_INTEGRATION_TESTS True N/A RUN_UNIT_TESTS True N/A RUN_S3_TESTS False N/A PARALLEL_COMPOSITE_UPLOAD_TEST_CONFIG /tmp/.boto.parallel_upload_test_config _HasS3Credentials N/A N/A N/A N/A N/A N/A N/A N/A N/A boto config get Credentials aws_access_key_id None N/A N/A N/A boto config get Credentials aws_secret_access_key None N/A N/A HAS_S3_CREDS N/A _HasS3Credentials _HasGSHost N/A N/A N/A N/A N/A N/A N/A N/A N/A boto config get Credentials gs_host None None N/A N/A HAS_GS_HOST N/A _HasGSHost _HasGSPort N/A N/A N/A N/A N/A N/A N/A N/A N/A boto config get Credentials gs_port None None N/A N/A HAS_GS_PORT N/A _HasGSPort _UsingJSONApi N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A boto config get GSUtil prefer_api json upper XML N/A N/A USING_JSON_API N/A _UsingJSONApi _ArgcompleteAvailable N/A N/A N/A N/A N/A argcomplete None N/A N/A N/A argcomplete N/A N/A N/A ImportError N/A N/A N/A N/A argcomplete None N/A N/A ARGCOMPLETE_AVAILABLE N/A _ArgcompleteAvailable _NormalizeURI N/A N/A uri N/A N/A N/A Normalizes the path component of a URI.

  Args:
    uri: URI to normalize.

  Returns:
    Normalized URI.

  Examples:
    gs://foo//bar -> gs://foo/bar
    gs://foo/./bar -> gs://foo/bar
   N/A uri N/A N/A uri replace gs:// file:// N/A parsed N/A list N/A N/A urlparse urlparse uri N/A N/A parsed N/A 2 N/A N/A posixpath normpath N/A parsed N/A 2 N/A N/A N/A N/A parsed N/A 2 startswith // N/A N/A N/A parsed N/A 2 N/A N/A parsed N/A 2 N/A 1 N/A unparsed N/A N/A urlparse urlunparse parsed N/A unparsed N/A N/A unparsed replace file:// gs:// N/A unparsed N/A GenerationFromURI N/A N/A uri N/A N/A N/A Returns a the generation for a StorageUri.

  Args:
    uri: boto.storage_uri.StorageURI object to get the URI from.

  Returns:
    Generation string for the URI.
   N/A N/A N/A N/A uri generation N/A uri version_id N/A N/A N/A N/A uri scheme s3 N/A N/A null N/A N/A N/A uri generation N/A uri version_id N/A ObjectToURI N/A N/A obj N/A suffixes N/A N/A Returns the storage URI string for a given StorageUri or file object.

  Args:
    obj: The object to get the URI from. Can be a file object, a subclass of
         boto.storage_uri.StorageURI, or a string. If a string, it is assumed to
         be a local on-disk path.
    *suffixes: Suffixes to append. For example, ObjectToUri(bucketuri, 'foo')
               would return the URI for a key name 'foo' inside the given
               bucket.

  Returns:
    Storage URI string.
   N/A N/A isinstance obj file N/A N/A N/A file://%s N/A N/A N/A os path abspath N/A N/A N/A os path join N/A obj name suffixes N/A N/A isinstance obj basestring N/A N/A N/A file://%s N/A N/A N/A os path join obj suffixes N/A uri N/A obj uri N/A suffixes N/A N/A uri N/A _NormalizeURI N/A N/A / join N/A N/A uri N/A list suffixes N/A N/A N/A uri endswith / N/A N/A uri N/A uri N/A -1 N/A uri N/A N/A N/A gslib.tests mock_storage_service N/A N/A N/A ImportError N/A N/A N/A boto.tests.integration.s3 mock_storage_service N/A N/A N/A ImportError N/A N/A N/A tests.integration.s3 mock_storage_service N/A N/A N/A ImportError N/A N/A mock_storage_service GSMockConnection N/A N/A mock_storage_service MockConnection N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A kwargs N/A provider gs N/A N/A self debug 0 N/A N/A N/A N/A super GSMockConnection self __init__ args kwargs N/A N/A N/A mock_connection N/A GSMockConnection GSMockBucketStorageUri N/A N/A mock_storage_service MockBucketStorageUri N/A connect N/A N/A self access_key_id secret_access_key N/A None None N/A N/A mock_connection N/A compose N/A N/A self components headers N/A None N/A N/A Dummy implementation to allow parallel uploads with tests. N/A N/A N/A self new_key N/A N/A N/A TEST_BOTO_REMOVE_SECTION TestRemoveSection _SetBotoConfig N/A N/A section name value revert_list N/A N/A N/A Sets boto configuration temporarily for testing.

  SetBotoConfigForTest should be called by tests instead of this function.
  This will ensure that the configuration is reverted to its original setting
  using _RevertBotoConfig.

  Args:
    section: Boto config section to set
    name: Boto config name to set
    value: Value to set
    revert_list: List for tracking configs to revert.
   N/A prev_value N/A N/A N/A boto config get section name None N/A N/A N/A N/A N/A boto config has_section section N/A N/A N/A N/A revert_list append N/A section TEST_BOTO_REMOVE_SECTION None N/A N/A N/A N/A boto config add_section section N/A N/A N/A revert_list append N/A section name prev_value N/A N/A value None N/A N/A N/A N/A N/A boto config remove_option section name N/A N/A N/A N/A N/A boto config set section name value N/A _RevertBotoConfig N/A N/A revert_list N/A N/A N/A Reverts boto config modifications made by _SetBotoConfig.

  Args:
    revert_list: List of boto config modifications created by calls to
                 _SetBotoConfig.
   N/A sections_to_remove N/A N/A N/A section name value revert_list N/A N/A N/A value None N/A N/A N/A name TEST_BOTO_REMOVE_SECTION N/A N/A N/A N/A sections_to_remove append section N/A N/A N/A N/A N/A boto config remove_option section name N/A N/A N/A N/A N/A boto config set section name value N/A section sections_to_remove N/A N/A N/A N/A N/A boto config remove_section section N/A SequentialAndParallelTransfer N/A N/A func N/A N/A N/A Decorator for tests that perform file to object transfers, or vice versa.

  This forces the test to run once normally, and again with special boto
  config settings that will ensure that the test follows the parallel composite
  upload and/or sliced object download code paths.

  Args:
    func: Function to wrap.

  Returns:
    Wrapped function.
   Wrapper N/A N/A N/A args kwargs N/A N/A N/A func args kwargs N/A N/A N/A RUN_S3_TESTS N/A UsingCrcmodExtension crcmod N/A N/A N/A SetBotoConfigForTest N/A N/A GSUtil parallel_composite_upload_threshold 1 N/A GSUtil sliced_object_download_threshold 1 N/A GSUtil sliced_object_download_max_components 3 N/A GSUtil check_hashes always N/A N/A N/A func args kwargs N/A N/A N/A functools wraps func N/A Wrapper N/A _SectionDictFromConfigList N/A N/A boto_config_list N/A N/A N/A Converts the input config list to a dict that is easy to write to a file.

  This is used to reset the boto config contents for a test instead of
  preserving the existing values.

  Args:
    boto_config_list: list of tuples of:
        (boto config section to set, boto config name to set, value to set)
        If value to set is None, no entry is created.

  Returns:
    Dictionary of {section: {keys: values}} for writing to the file.
   N/A sections N/A N/A config_entry boto_config_list N/A N/A N/A section key value N/A N/A config_entry N/A 0 N/A config_entry N/A 1 N/A config_entry N/A 2 N/A N/A section sections N/A N/A N/A sections N/A section N/A N/A N/A value None N/A N/A N/A N/A sections N/A section N/A key value N/A sections N/A _WriteSectionDictToFile N/A N/A section_dict tmp_filename N/A N/A N/A Writes a section dict from _SectionDictFromConfigList to tmp_filename. N/A N/A open tmp_filename w tmp_file N/A N/A N/A section key_value_pairs N/A N/A section_dict iteritems N/A N/A N/A N/A tmp_file write N/A [%s]
 section N/A N/A key value N/A N/A key_value_pairs iteritems N/A N/A N/A N/A tmp_file write N/A %s = %s
 N/A key value N/A SetBotoConfigForTest N/A N/A boto_config_list use_existing_config N/A True N/A N/A Sets the input list of boto configs for the duration of a 'with' clause.

  This preserves any existing boto configuration unless it is overwritten in
  the provided boto_config_list.

  Args:
    boto_config_list: list of tuples of:
        (boto config section to set, boto config name to set, value to set)
    use_existing_config: If True, apply boto_config_list to the existing
        configuration, preserving any original values unless they are
        overwritten. Otherwise, apply boto_config_list to a blank configuration.

  Yields:
    Once after config is set.
   N/A revert_configs N/A N/A tmp_filename None N/A N/A N/A N/A tmp_fd tmp_filename N/A N/A tempfile mkstemp prefix gsutil-temp-cfg N/A N/A N/A os close tmp_fd N/A use_existing_config N/A N/A boto_config boto_config_list N/A N/A N/A _SetBotoConfig N/A boto_config N/A 0 N/A boto_config N/A 1 N/A boto_config N/A 2 revert_configs N/A N/A open tmp_filename w tmp_file N/A N/A N/A N/A N/A boto config write tmp_file N/A N/A N/A _WriteSectionDictToFile N/A _SectionDictFromConfigList boto_config_list tmp_filename N/A N/A _SetBotoConfigFileForTest tmp_filename N/A N/A N/A N/A N/A N/A _RevertBotoConfig revert_configs N/A tmp_filename N/A N/A N/A N/A N/A N/A os remove tmp_filename N/A N/A N/A OSError N/A N/A N/A contextmanager SetEnvironmentForTest N/A N/A env_variable_dict N/A N/A N/A Sets OS environment variables for a single test. _ApplyDictToEnvironment N/A N/A dict_to_apply N/A N/A N/A N/A k v N/A N/A dict_to_apply iteritems N/A N/A N/A old_values N/A k N/A N/A N/A os environ get k N/A N/A v None N/A N/A N/A N/A os environ N/A k v N/A N/A N/A k N/A os environ N/A N/A N/A N/A os environ N/A k N/A N/A old_values N/A N/A k env_variable_dict N/A N/A N/A old_values N/A k N/A N/A N/A os environ get k N/A N/A N/A N/A _ApplyDictToEnvironment env_variable_dict N/A N/A N/A N/A N/A _ApplyDictToEnvironment old_values N/A contextmanager _SetBotoConfigFileForTest N/A N/A boto_config_path N/A N/A N/A Sets a given file as the boto config file for a single test.

  This function applies only the configuration in boto_config_path and will
  ignore existing configuration. It should not be called directly by tests;
  instead, use SetBotoConfigForTest.

  Args:
    boto_config_path: Path to config file to use.

  Yields:
    When configuration has been applied, and again when reverted.
   N/A N/A N/A old_boto_config_env_variable N/A N/A os environ N/A BOTO_CONFIG N/A boto_config_was_set True N/A N/A N/A KeyError N/A N/A boto_config_was_set False N/A N/A N/A os environ N/A BOTO_CONFIG boto_config_path N/A N/A N/A N/A N/A N/A boto_config_was_set N/A N/A N/A N/A os environ N/A BOTO_CONFIG old_boto_config_env_variable N/A N/A N/A N/A N/A os environ pop BOTO_CONFIG None N/A contextmanager GetTestNames N/A N/A N/A N/A N/A Returns a list of the names of the test modules in gslib.tests. N/A matcher N/A N/A re compile ^test_(?P<name>.*)$ N/A names N/A N/A N/A _ modname _ N/A N/A pkgutil iter_modules N/A gslib_tests __path__ N/A N/A m N/A N/A matcher match modname N/A m N/A N/A N/A N/A names append N/A N/A m group name N/A names N/A WorkingDirectory N/A N/A new_working_directory N/A N/A N/A Changes the working directory for the duration of a 'with' call.

  Args:
    new_working_directory: The directory to switch to before executing wrapped
      code. A None value indicates that no switching is necessary.

  Yields:
    Once after working directory has been changed.
   N/A prev_working_directory None N/A N/A N/A prev_working_directory N/A N/A os getcwd N/A N/A N/A OSError N/A N/A N/A new_working_directory N/A N/A N/A N/A os chdir new_working_directory N/A N/A N/A N/A N/A N/A N/A new_working_directory prev_working_directory N/A N/A N/A N/A os chdir prev_working_directory N/A contextmanager