def test_003_multiple(self): with LibZFSHandle() as ptr: ptr2 = LibZFSHandle.init() refcount = LibZFSHandle.refcount() LibZFSHandle.fini() assert refcount > 1 assert ptr == ptr2 assert LibZFSHandle.refcount() == (refcount - 1)