예제 #1
0
 def setup(self):
     if hasattr(self, 'filename') and hasattr(self, 'filesize'):
         file_to_create = os.path.join(self.working_dir, self.filename)
         logit("Creating file [%s] with size [%d]" % (file_to_create, self.filesize))
         with open(file_to_create, 'wb') as fout:
             fout.write(os.urandom(self.filesize))
     super(S3cmdTest, self).setup()
예제 #2
0
 def setup(self):
     # Do initializations required to run the tests
     logit("Setting up the test [%s]" % (self.description))
     super(S3fiTest, self).setup()