MCPcopy Index your code
hub / github.com/pyinvoke/invoke / is_basename_when_given_a_path

Method is_basename_when_given_a_path

tests/program.py:175–178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

173
174 @trap
175 def is_basename_when_given_a_path(self):
176 p = Program()
177 p.run("/usr/local/bin/whatever --help", exit=False)
178 assert p.called_as == "whatever"
179
180 class binary_names:
181 # NOTE: this is currently only used for completion stuff, so we use

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
ProgramClass · 0.90

Tested by

no test coverage detected