#NEWLINE# def test_user_string_truncation( self ) : #NEWLINE# #INDENT# user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 Safari/535.1' #NEWLINE# worker = Worker ( ) #NEWLINE# worker . save ( ) #NEWLINE# ts = self . suite ( ) #NEWLINE# token = Token . create ( ts ) #NEWLINE# r = self . client . post ( reverse ( 'work.query' ) , dict ( worker_id = worker . id , user_agent = token ) ) #NEWLINE# eq_ ( r . status_code , 200 )