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)
    def test_002_manual(self):
        LibZFSHandle.init()

        LibZFSHandle.fini()
Example #3
0
 def setUpClass(cls):
     LibZFSHandle.init()
Example #4
0
 def tearDown(self):
     LibZFSHandle.fini()
Example #5
0
 def setUp(self):
     LibZFSHandle.init()
Example #6
0
 def tearDownClass(cls):
     LibZFSHandle.fini()