#NEWLINE# @ withattrs ( TestModel . Elasticsearch , 'facets_fields' , [ 'first_name' ] ) #NEWLINE# def test_faceted_viewset( self ) : #NEWLINE# #INDENT# r = self . client . get ( '/rf/tests/' , { #NEWLINE# #INDENT# 'q' : 'test' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( ( 'facets' in self . data ) )