#NEWLINE# def test_store_commons( ) : #NEWLINE# #INDENT# FILES = [ { #NEWLINE# #INDENT# 'data' : 'aaa' , #NEWLINE# 'filename' : 'aaa.txt' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'data' : 'bbb' , #NEWLINE# 'filename' : 'bbb.txt' , #NEWLINE# #UNINDENT# } ] #NEWLINE# store = emails . store . MemoryFileStore ( ) #NEWLINE# [ store . add ( _ ) for _ in orig_file ] #NEWLINE# for ( i , stored_file ) in enumerate ( store ) : #NEWLINE# #INDENT# orig_file = FILES [ i ] #NEWLINE# for ( k , v ) in orig_file . items ( ) : #NEWLINE# #INDENT# assert ( v == getattr ( stored_file , k ) )