#NEWLINE# def test_key_leaks( self ) : #NEWLINE# #INDENT# initial_key_count = len ( db . keys ( ) ) #NEWLINE# self . store_test_data ( 1 ) #NEWLINE# key_len = len ( db . keys ( ) ) #NEWLINE# self . store_test_data ( 2 ) #NEWLINE# key_len2 = len ( db . keys ( ) ) #NEWLINE# self . assertTrue ( ( key_len != key_len2 ) ) #NEWLINE# self . autocomplete . remove ( 2 ) #NEWLINE# self . assertEqual ( len ( db . keys ( ) ) , key_len ) #NEWLINE# self . autocomplete . remove ( 1 ) #NEWLINE# self . assertEqual ( len ( db . keys ( ) ) , initial_key_count )