<s> from django . test import TestCase <EOL> from . . models import Person <EOL> from . . search_indexes import PersonIndex <EOL> class PersonIndexTest ( TestCase ) : <EOL> def setUp ( self ) : <EOL> self . leonardo = Person . objects . create ( <EOL> name = "<STR_LIT>" , <EOL> description = '<STR_LIT>' , <EOL> email = '<STR_LIT>' ) <EOL> def test_queryset_includes_person ( self ) : <EOL> index = PersonIndex ( ) <EOL> self . assertIn ( self . leonardo , index . index_queryset ( ) ) </s>
