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

Method test_service_alias_command

tests/unit/test_alias.py:272–280  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

270 self.files.remove_all()
271
272 def test_service_alias_command(self):
273 with open(self.alias_file, 'a+') as f:
274 f.write('my-alias = my-alias-value\n')
275
276 self.alias_cmd_injector.inject_aliases(self.command_table, self.parser)
277 self.assertIn('my-alias', self.command_table)
278 self.assertIsInstance(
279 self.command_table['my-alias'], ServiceAliasCommand
280 )
281
282 def test_external_alias_command(self):
283 with open(self.alias_file, 'a+') as f:

Callers

nothing calls this directly

Calls 2

inject_aliasesMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected