MCPcopy Create free account
hub / github.com/pyinvoke/invoke / _compare_names

Method _compare_names

tests/cli.py:59–60  ·  view source on GitHub ↗
(self, given, real)

Source from the content-addressed store, hash-verified

57 assert result[0].args[flagname].value == value
58
59 def _compare_names(self, given, real):
60 assert self._parse(given)[0].name == real
61
62 def underscored_flags_can_be_given_as_dashed(self):
63 self._compare("--long-name", "long_name", True)

Callers 4

namespaced_taskMethod · 0.95
aliasesMethod · 0.95
subcollection_aliasesMethod · 0.95

Calls 1

_parseMethod · 0.95

Tested by

no test coverage detected