MCPcopy Index your code
hub / github.com/aws/aws-cli / assert_lineage_names

Method assert_lineage_names

tests/integration/test_cli.py:387–403  ·  view source on GitHub ↗
(self, ref_lineage_names)

Source from the content-addressed store, hash-verified

385 self.top_help = self.driver.create_help_command()
386
387 def assert_lineage_names(self, ref_lineage_names):
388 command_table = self.top_help.command_table
389 for i, cmd_name in enumerate(ref_lineage_names):
390 command = command_table[cmd_name]
391 help_command = command.create_help_command()
392 command_table = help_command.command_table
393
394 actual_lineage_names = []
395 for cmd in command.lineage:
396 actual_lineage_names.append(cmd.name)
397
398 # Assert the actual names of each command in a lineage is as expected.
399 self.assertEqual(actual_lineage_names, ref_lineage_names)
400
401 # Assert that ``lineage_names`` for each command is in sync with what
402 # is actually in the command's ``lineage``.
403 self.assertEqual(command.lineage_names, actual_lineage_names)
404
405 def test_service_level_commands(self):
406 # Check a normal unchanged service command

Callers 3

test_wait_commandsMethod · 0.95

Calls 1

create_help_commandMethod · 0.45

Tested by

no test coverage detected