code: def test_path_tokenizer():
      value = u("/alfa/bravo/charlie/delta/")
      pt = analysis.PathTokenizer()
      assert [t.text for t in pt(value)] == [
          "/alfa",
          "/alfa/bravo",
          "/alfa/bravo/charlie",
          "/alfa/bravo/charlie/delta",
      ]
  
imports: from __future__ import with_statement
  import pytest
  from whoosh import analysis, fields, qparser
  from whoosh.compat import b, u, unichr
  from whoosh.compat import dumps
  from whoosh.filedb.filestore import RamStorage
label_desc: Use image node_id 2 for calling a global function with example usage: test_path_tokenizer() without return types