#NEWLINE# def test_search_called( self , twit ) : #NEWLINE# #INDENT# 'search without stream should call search.tweets.' #NEWLINE# settings = { #NEWLINE# #INDENT# 'stream' : False , #NEWLINE# 'search' : [ 'words' , 'and' , 'phrases' ] , #NEWLINE# 'user' : None , #NEWLINE# 'uid' : None , #NEWLINE# 'max' : 1 , #NEWLINE# 'spam' : False , #NEWLINE# #UNINDENT# } #NEWLINE# base . print_tweets ( twit = twit , settings = settings ) #NEWLINE# twit . search . tweets . assert_called_once_with ( q = 'words,and,phrases' )