#NEWLINE# def test_added_entries( self ) : #NEWLINE# #INDENT# record = Record ( ) #NEWLINE# ae1 = '=730  0\\$aTosefta.$lEnglish.$f1977.' #NEWLINE# ae2 = '=700  10$aLe Peu, Pepe.' #NEWLINE# aelist = [ ae1 , ae2 ] #NEWLINE# self . assertEquals ( record . addedentries ( ) , [ ] ) #NEWLINE# record . add_field ( Field ( '730' , [ 0 , ' ' ] , subfields = [ 'a' , 'Tosefta.' , 'l' , 'English.' , 'f' , '1977.' ] ) ) #NEWLINE# record . add_field ( Field ( '700' , [ 1 , 0 ] , subfields = [ 'a' , 'Le Peu, Pepe.' ] ) ) #NEWLINE# record . add_field ( Field ( '245' , [ 0 , 0 ] , subfields = [ 'a' , "Le Peu's Tosefa." ] ) ) #NEWLINE# self . assertEquals ( len ( record . addedentries ( ) ) , 2 ) #NEWLINE# self . assertEquals ( record . addedentries ( ) [ 0 ] . __str__ ( ) , ae1 ) #NEWLINE# self . assertEquals ( record . addedentries ( ) [ 1 ] . __str__ ( ) , ae2 ) #NEWLINE# raelist = [ rae . __str__ ( ) for rae in record . addedentries ( ) ] #NEWLINE# self . assertEquals ( aelist , record )