Пример #1
0
 def test_parameters(self):
     """
     Ensures that all of the parameters generated for a specified
     command are an elgible parameter.
     """
     commands_list = ['cp', 'mv', 'rm', 'sync', 'ls', 'mb', 'rb']
     params_list = ['dryrun', 'delete', 'quiet', 'recursive', 'exclude',
                    'include', 'acl', 'force']
     for cmd in commands_list:
         self.parameters = {}
         add_cmd_params(self.parameters, cmd)
         for param in self.parameters.keys():
             self.assertIn(param, params_list)
Пример #2
0
 def test_parameters(self):
     """
     Ensures that all of the parameters generated for a specified
     command are an elgible parameter.
     """
     commands_list = ['cp', 'mv', 'rm', 'sync', 'ls', 'mb', 'rb']
     params_list = [
         'dryrun', 'delete', 'quiet', 'recursive', 'exclude', 'include',
         'acl', 'force'
     ]
     for cmd in commands_list:
         self.parameters = {}
         add_cmd_params(self.parameters, cmd)
         for param in self.parameters.keys():
             self.assertIn(param, params_list)
Пример #3
0
 def test_parameters(self):
     """
     Ensures that all of the parameters generated for a specified
     command are an elgible parameter.
     """
     commands_list = ['cp', 'mv', 'rm', 'sync', 'ls', 'mb', 'rb']
     params_list = ['dryrun', 'delete', 'quiet', 'recursive', 'exclude',
                    'include', 'acl', 'force', 'no-guess-mime-type',
                    'sse', 'storage-class', 'website-redirect',
                    'content-type', 'cache-control', 'content-disposition',
                    'content-language', 'content-encoding', 'expires',
                    'grants']
     for cmd in commands_list:
         self.parameters = {}
         add_cmd_params(self.parameters, cmd)
         for param in self.parameters.keys():
             self.assertIn(param, params_list)
Пример #4
0
 def test_parameters(self):
     """
     Ensures that all of the parameters generated for a specified
     command are an elgible parameter.
     """
     commands_list = ["cp", "mv", "rm", "sync", "ls", "mb", "rb"]
     params_list = [
         "dryrun",
         "delete",
         "quiet",
         "recursive",
         "exclude",
         "include",
         "acl",
         "force",
         "no-guess-mime-type",
     ]
     for cmd in commands_list:
         self.parameters = {}
         add_cmd_params(self.parameters, cmd)
         for param in self.parameters.keys():
             self.assertIn(param, params_list)