Пример #1
0
    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)
Пример #2
0
 def setUpClass(cls):
     LibZFSHandle.init()
Пример #3
0
    def test_002_manual(self):
        LibZFSHandle.init()

        LibZFSHandle.fini()
Пример #4
0
 def setUp(self):
     LibZFSHandle.init()