<s> from mezzanine . conf import settings <EOL> from raspberryio . project . tests . base import ProjectBaseTestCase <EOL> from raspberryio . search . utils import load_search_model_indexes <EOL> class SearchModelIndexeUtilsTestCase ( ProjectBaseTestCase ) : <EOL> def setUp ( self ) : <EOL> """<STR_LIT>""" <EOL> self . index_settings = settings . SEARCH_MODEL_INDEXES <EOL> def test_load_search_model_indexes_valid ( self ) : <EOL> search_proxy_model = load_search_model_indexes ( ) [ <NUM_LIT:1> ] <EOL> self . assertEqual ( <EOL> search_proxy_model . search_fields , <EOL> self . index_settings [ '<STR_LIT>' ] <EOL> ) <EOL> self . assertEqual ( search_proxy_model . __name__ , '<STR_LIT>' ) </s>
