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

Method test_get_aliases

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

Source from the content-addressed store, hash-verified

69 self.assertEqual(alias_interface.get_aliases(), {})
70
71 def test_get_aliases(self):
72 with open(self.alias_file, 'a+') as f:
73 f.write('my-alias = my-alias-value')
74 alias_interface = AliasLoader(self.alias_file)
75 self.assertEqual(
76 alias_interface.get_aliases(), {'my-alias': 'my-alias-value'}
77 )
78
79 def test_get_aliases_with_alias_that_includes_parameter(self):
80 with open(self.alias_file, 'a+') as f:

Callers

nothing calls this directly

Calls 3

get_aliasesMethod · 0.95
AliasLoaderClass · 0.90
writeMethod · 0.45

Tested by

no test coverage detected