def test_citation_span_uniqueness():
    """Test that CitationTracker correctly identifies duplicate spans."""
    tracker = CitationTracker()

    # Record a span
    tracker.is_new_span("abc1234", (10, 18))

    # Check if the same span is recognized as not new
    assert not tracker.is_new_span("abc1234", (10, 18)), "Duplicate span should not be considered new"

    # Check if different span for same citation is recognized as new
    assert tracker.is_new_span("abc1234", (20, 28)), "Different span should be considered new"

    # Check if same span for different citation is recognized as new
    assert tracker.is_new_span("def5678", (10, 18)), "Same span for different citation should be considered new"
Test that CitationTracker correctly identifies duplicate spans.
py/tests/unit/agent/test_agent_citations.py