#NEWLINE# def test_db_commit_performed_correctly( self ) : #NEWLINE# #INDENT# db = Db ( self . conn , self . sql ) #NEWLINE# db . setup ( 3 ) #NEWLINE# self . assertEqual ( self . conn . commit_count , 0 ) #NEWLINE# db . commit ( ) #NEWLINE# self . assertEqual ( self . conn . commit_count , 1 )