#NEWLINE# def test_insert_row_when_add_new_word_list( self ) : #NEWLINE# #INDENT# db = Db ( self . conn , self . sql ) #NEWLINE# db . setup ( 3 ) #NEWLINE# word_list = [ 'one' , 'two' , 'three' ] #NEWLINE# db . add_word ( word_list ) #NEWLINE# execute_args = self . conn . stub_cursor . execute_args #NEWLINE# self . assertEqual ( len ( execute_args ) , 6 ) #NEWLINE# self . assertEqual ( execute_args [ 4 ] , ( 'select_count_for_words_sql 3' , word_list ) ) #NEWLINE# self . assertEqual ( execute_args [ 5 ] , ( 'insert_row_for_words_sql 3' , ( word_list + [ 1 ] ) ) )