示例#1
0
 def setUp(self):
     BaseTest.setUp(self)
     self.bucket = Bucket('bucket')
     self.backend = S3(aws_access_key_id='not', aws_secret_access_key='a real key')
     mock.patch.object(self.backend, 'get_bucket', return_value=self.bucket).start()
示例#2
0
 def setUp(self):
     BaseTest.setUp(self)
     self.backend = Swift()
     self.conn = mock.Mock()
     mock.patch.object(self.backend, 'conn', self.conn).start()