예제 #1
0
 def test_system_namespace(self):
     ns = system_namespace()
     fun = [x for x in ns.iter(ns.getters) if x[1] == 'net_if_addrs'][0][0]
     self.assertEqual(fun(), psutil.net_if_addrs())
예제 #2
0
 def test_coverage(self):
     ns = system_namespace()
     ns.test_class_coverage(self, ns.all)