def close(self): """Cleanup resources.""" if self.__crypt is None: return lib.mongocrypt_destroy(self.__crypt) self.__crypt = None
def test_mongocrypt_new(self): data = lib.mongocrypt_new() self.assertNotEqual(data, ffi.NULL) lib.mongocrypt_destroy(data)