Exemplo n.º 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)
Exemplo n.º 2
0
 def tearDown(self):
     LibZFSHandle.fini()
Exemplo n.º 3
0
    def test_002_manual(self):
        LibZFSHandle.init()

        LibZFSHandle.fini()
Exemplo n.º 4
0
 def tearDownClass(cls):
     LibZFSHandle.fini()