#NEWLINE# def test_add_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 . failUnless ( ( field in record . fields ) , msg = 'found field' )