#NEWLINE# def test_TSO_search_encoding( self ) : #NEWLINE# #INDENT# ' Tests the url encoding of TwitterSearchOrder.create_search_url() ' #NEWLINE# test_cases = [ 'test(' , '[test' , 'foo$bar' , 'plain' , '==' , '=%!' ] #NEWLINE# for value in test_cases : #NEWLINE# #INDENT# tso = TwitterSearchOrder ( ) #NEWLINE# tso . add_keyword ( value ) #NEWLINE# cor = ( '?q=%s&count=%s' % ( quote_plus ( tso ) , tso . _max_count ) ) #NEWLINE# self . assertEqualQuery ( tso . create_search_url ( ) , cor )