#NEWLINE# def test_reorganize( self ) : #NEWLINE# #INDENT# self . g = gdbm . open ( filename , 'c' ) #NEWLINE# size0 = os . path . getsize ( filename ) #NEWLINE# self . g [ 'x' ] = ( 'x' * 10000 ) #NEWLINE# size1 = os . path . getsize ( filename ) #NEWLINE# self . assertTrue ( ( size0 < size1 ) ) #NEWLINE# del self . g [ 'x' ] #NEWLINE# self . assertEqual ( os . path . getsize ( filename ) , size1 ) #NEWLINE# self . g . reorganize ( ) #NEWLINE# size2 = os . path . getsize ( filename ) #NEWLINE# self . assertTrue ( ( size2 > size2 >= size0 ) )