示例#1
0
文件: s3_test.py 项目: bryson/salt
 def test_get(self):
     '''
     Test for list the contents of a bucket, or return an object from a
     bucket.
     '''
     with patch.object(s3, '_get_key',
                       return_value=('key', 'keyid', 'service_url',
                                     'verify_ssl', 'kms_keyid', 'location',
                                     'role_arn')):
         self.assertEqual(s3.get(), 'A')
示例#2
0
 def test_get(self):
     '''
     Test for list the contents of a bucket, or return an object from a
     bucket.
     '''
     with patch.object(s3, '_get_key',
                       return_value=('key', 'keyid', 'service_url',
                                     'verify_ssl', 'kms_keyid', 'location',
                                     'role_arn', 'path_style', 'https_enable')):
         self.assertEqual(s3.get(), 'A')
示例#3
0
 def test_get(self):
     """
     Test for list the contents of a bucket, or return an object from a
     bucket.
     """
     with patch.object(
         s3,
         "_get_key",
         return_value=(
             "key",
             "keyid",
             "service_url",
             "verify_ssl",
             "kms_keyid",
             "location",
             "role_arn",
             "path_style",
             "https_enable",
         ),
     ):
         self.assertEqual(s3.get(), "A")