import unittest import os import shutil import sys from ebooklib import epub # Ensure import path sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))) from abogen.book_parser import get_book_parser class TestEpubHeuristicNav(unittest.TestCase): """ Tests for the heuristic fallback in _identify_nav_item (Step 4), where the parser scans ITEM_DOCUMENTs for