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

Method test

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

Source from the content-addressed store, hash-verified

748 method_type = "iface"
749
750 def test(self): # type: () -> bool
751 try:
752 import fcntl
753
754 return True
755 except Exception: # Broad except to handle unknown effects
756 return False
757
758 def get(self, arg): # type: (str) -> Optional[str]
759 import fcntl

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected