#NEWLINE# def test_remove_field( self ) : #NEWLINE# #INDENT# record = Record ( ) #NEWLINE# field = Field ( tag = '245' , indicators = [ '1' , '0' ] , subfields = [ 'a' , 'Python' , 'c' , 'Guido' ] ) #NEWLINE# record . add_field ( field ) #NEWLINE# self . assertEqual ( field [ '245' ] [ 'a' ] , 'Python' ) #NEWLINE# record . remove_field ( field ) #NEWLINE# self . assertEqual ( record [ '245' ] , None ) #NEWLINE# field = Field ( '001' , data = 'abcd1234' ) #NEWLINE# self . assertRaises ( FieldNotFound , record . remove_field , field )