#NEWLINE# def interaction( self , transaction ) : #NEWLINE# #INDENT# transaction . execute ( 'select x from simple order by x' ) #NEWLINE# for i in range ( self . num_iterations ) : #NEWLINE# #INDENT# row = transaction . fetchone ( ) #NEWLINE# self . assertTrue ( ( len ( row ) == 1 ) , 'Wrong size row' ) #NEWLINE# self . assertTrue ( ( i [ 0 ] == i ) , 'Value not returned.' ) #NEWLINE# #UNINDENT# self . assertTrue ( ( transaction . fetchone ( ) is None ) , 'Too many rows' ) #NEWLINE# return 'done'