code: def test_single_term():
      schema = fields.Schema(text=fields.TEXT(vector=True))
      ix = RamStorage().create_index(schema)
      with ix.writer() as w:
          w.add_document(text=u("TEST TEST TEST"))
      with ix.searcher() as s:
          v = s.vector(0, "text")
          assert v.is_active()
  
file_path: whoosh/tests/test_vectors.py
imports: from __future__ import with_statement
  from whoosh import fields, formats
  from whoosh.compat import u
  from whoosh.filedb.filestore import RamStorage
  from whoosh.util.testing import TempIndex
label_desc: Use image node_id 1 for calling a global function with example usage: test_single_term() without return types