#NEWLINE# def test_task_post( self ) : #NEWLINE# #INDENT# ' test that api.post creates a task and additional calls resume\n    ' #NEWLINE# nick = 'popular@example.com' #NEWLINE# uuid = 'HOWNOW' #NEWLINE# message = 'BROWNCOW' #NEWLINE# actor_ref = api . actor_get ( api . ROOT , nick ) #NEWLINE# old_max = api . MAX_FOLLOWERS_PER_INBOX #NEWLINE# api . MAX_FOLLOWERS_PER_INBOX = 1 #NEWLINE# try : #NEWLINE# #INDENT# entry_ref = api . post ( actor_ref , nick = nick , uuid = uuid , message = message ) #NEWLINE# self . assertEqual ( entry_ref . extra [ 'title' ] , message ) #NEWLINE# two_entry_ref = api . post ( actor_ref , nick = nick , uuid = uuid , message = actor_ref ) #NEWLINE# self . assertEqual ( entry_ref . uuid , two_entry_ref . uuid ) #NEWLINE# for i in range ( 5 ) : #NEWLINE# #INDENT# api . task_process_actor ( api . ROOT , nick ) #NEWLINE# #UNINDENT# self . assertRaises ( exception . ApiNoTasks , ( lambda : api . task_process_actor ( api . ROOT , nick ) ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# api . MAX_FOLLOWERS_PER_INBOX = old_max