#NEWLINE# def test_non_global_facets( self ) : #NEWLINE# #INDENT# qs = TestModel . es . search ( 'Foo' ) . facet ( [ 'last_name' ] , use_globals = False ) #NEWLINE# expected = [ { #NEWLINE# #INDENT# 'doc_count' : 1 , #NEWLINE# 'key' : 'bar' , #NEWLINE# #UNINDENT# } ] #NEWLINE# self . assertEqual ( qs . facets [ 'last_name' ] [ 'buckets' ] , expected )