コード例 #1
0
 def test_s3command_help(self):
     # This tests the help command for an s3 command. This
     # checks to make sure the command prints appropriate
     # parts.  Note the examples are not included because
     # the event was not registered.
     s3command = CpCommand(self.session)
     parser = argparse.ArgumentParser()
     parser.add_argument('--paginate', action='store_true')
     parsed_global = parser.parse_args(['--paginate'])
     help_command = s3command.create_help_command()
     help_command([], parsed_global)
     self.assert_contains("cp")
     self.assert_contains("[--acl <value>]")
     self.assert_contains("Displays the operations that would be")
コード例 #2
0
ファイル: test_subcommands.py プロジェクト: bw57899/aws-cli
 def test_s3command_help(self):
     # This tests the help command for an s3 command. This
     # checks to make sure the command prints appropriate
     # parts.  Note the examples are not included because
     # the event was not registered.
     s3command = CpCommand(self.session)
     parser = argparse.ArgumentParser()
     parser.add_argument('--paginate', action='store_true')
     parsed_global = parser.parse_args(['--paginate'])
     help_command = s3command.create_help_command()
     help_command([], parsed_global)
     self.assert_contains("cp")
     self.assert_contains("[--acl <value>]")
     self.assert_contains("Displays the operations that would be")