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

Method test

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

Source from the content-addressed store, hash-verified

1253 method_type = "default_iface"
1254
1255 def test(self): # type: () -> bool
1256 return check_command("route")
1257
1258 def get(self, arg=""): # type: (str) -> Optional[str]
1259 output = _popen("route", "-nq show -inet -gateway -priority 1")

Callers

nothing calls this directly

Calls 1

check_commandFunction · 0.85

Tested by

no test coverage detected