(self)
| 557 | ) |
| 558 | |
| 559 | def test_alias_then_help_command(self): |
| 560 | alias_value = 'myservice myoperation' |
| 561 | |
| 562 | command_table = self.create_command_table(['myservice']) |
| 563 | parser = self.create_parser(command_table) |
| 564 | alias_cmd = ServiceAliasCommand( |
| 565 | self.alias_name, alias_value, self.session, command_table, parser |
| 566 | ) |
| 567 | |
| 568 | parsed_globals = FakeParsedArgs(command=self.alias_name) |
| 569 | alias_cmd(['help'], parsed_globals) |
| 570 | command_table['myservice'].assert_called_with( |
| 571 | ['myoperation', 'help'], FakeParsedArgs(command='myservice') |
| 572 | ) |
| 573 | |
| 574 | def test_alias_then_additional_parameters(self): |
| 575 | alias_value = 'myservice myoperation' |
nothing calls this directly
no test coverage detected