#NEWLINE# def test_add_from_db_relpath( self ) : #NEWLINE# #INDENT# db_path = './testdb' #NEWLINE# ( status , content ) = self . handler . add ( db_path ) #NEWLINE# self . assertEqual ( status , FAILURE_STATUS ) #NEWLINE# self . assertIsInstance ( content , list ) #NEWLINE# self . assertEqual ( len ( content ) , 2 ) #NEWLINE# self . assertEqual ( content [ 0 ] , DATABASE_ERROR ) #NEWLINE# store_datas = json . load ( open ( self . handler . store_file , 'r' ) ) #NEWLINE# self . assertNotIn ( status , store_datas )