def fuser(self, *args, **kwargs): return fuser.fuser(*args, **kwargs)
def testSelfExe(self): pid = os.getpid() with NamedTemporaryFile() as tempFile: self.assertIn(pid, fuser.fuser(tempFile.name))