<s> from __future__ import absolute_import , division , print_function , unicode_literals <EOL> from haystack import indexes <EOL> from . . core . models import MockModel , ScoreMockModel <EOL> class SimpleMockSearchIndex ( indexes . SearchIndex , indexes . Indexable ) : <EOL> text = indexes . CharField ( document = True , use_template = True ) <EOL> name = indexes . CharField ( model_attr = '<STR_LIT>' ) <EOL> pub_date = indexes . DateTimeField ( model_attr = '<STR_LIT>' ) <EOL> def get_model ( self ) : <EOL> return MockModel <EOL> class SimpleMockScoreIndex ( indexes . SearchIndex , indexes . Indexable ) : <EOL> text = indexes . CharField ( document = True , use_template = True ) <EOL> score = indexes . CharField ( model_attr = '<STR_LIT>' ) <EOL> def get_model ( self ) : <EOL> return ScoreMockModel </s>
