#NEWLINE# def test_multiple_patch_requests_with_same_title_generates_one_log( self ) : #NEWLINE# #INDENT# payload = make_collection_payload ( collection = self . collection , attributes = { #NEWLINE# #INDENT# 'title' : self . new_title , #NEWLINE# #UNINDENT# } ) #NEWLINE# original_n_logs = len ( self . collection . logs ) #NEWLINE# for x in range ( 0 , 2 ) : #NEWLINE# #INDENT# res = self . app . patch_json_api ( self . url , payload , auth = self . user . auth ) #NEWLINE# assert_equal ( res . status_code , 200 ) #NEWLINE# self . collection . reload ( ) #NEWLINE# assert_equal ( self . collection . title , self . new_title ) #NEWLINE# assert_equal ( len ( self . collection . logs ) , ( original_n_logs + 1 ) )