#NEWLINE# def test_mount_corrupted_db( self ) : #NEWLINE# #INDENT# db_name = 'testdb' #NEWLINE# ( status , content ) = self . handler . add ( db_name ) #NEWLINE# db_uid = self . handler . index [ 'name_to_uid' ] [ db_name ] #NEWLINE# rm_from_pattern ( content . handler [ db_uid ] . path , 'MANIFEST*' ) #NEWLINE# ( status , content ) = self . handler . mount ( db_name ) #NEWLINE# self . assertEqual ( status , FAILURE_STATUS ) #NEWLINE# self . assertEqual ( len ( content ) , 2 ) #NEWLINE# self . assertEqual ( content [ 0 ] , DATABASE_ERROR )