MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / test

Method test

pager_lib/getmac/getmac.py:447–448  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

445 _regex = r"[ ]+" + MAC_RE_COLON # type: str
446
447 def test(self): # type: () -> bool
448 return check_command("arp")
449
450 def get(self, arg): # type: (str) -> Optional[str]
451 return _search(re.escape(arg) + self._regex, _popen("arp", "-an"))

Callers

nothing calls this directly

Calls 1

check_commandFunction · 0.85

Tested by

no test coverage detected