(self)
| 303 | ) |
| 304 | |
| 305 | def test_shadow_proxy_command(self): |
| 306 | builtin_cmd = mock.Mock(spec=CLICommand) |
| 307 | builtin_cmd.name = 'builtin' |
| 308 | self.command_table['builtin'] = builtin_cmd |
| 309 | |
| 310 | with open(self.alias_file, 'a+') as f: |
| 311 | f.write('builtin = builtin\n') |
| 312 | |
| 313 | self.alias_cmd_injector.inject_aliases(self.command_table, self.parser) |
| 314 | |
| 315 | self.command_table['builtin']([], FakeParsedArgs(command='builtin')) |
| 316 | # The builtin command should be passed to the alias |
| 317 | # command when added to the table. |
| 318 | builtin_cmd.assert_called_with([], FakeParsedArgs(command='builtin')) |
| 319 | |
| 320 | |
| 321 | class TestBaseAliasCommand(unittest.TestCase): |
nothing calls this directly
no test coverage detected