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

Method test

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

Source from the content-addressed store, hash-verified

705 _path = "/sys/class/net/" # type: str
706
707 def test(self): # type: () -> bool
708 # Imperfect, but should work well enough
709 return check_path(self._path)
710
711 def get(self, arg): # type: (str) -> Optional[str]
712 data = _read_file(self._path + arg + "/address")

Callers

nothing calls this directly

Calls 1

check_pathFunction · 0.85

Tested by

no test coverage detected