#NEWLINE# def test_contribute_to_class( self ) : #NEWLINE# #INDENT# class FakeDocument ( object ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# f = fields . Field ( ) #NEWLINE# f . add_to_class ( FakeDocument , 'test_field' ) #NEWLINE# self . assertEqual ( self . name , 'test_field' ) #NEWLINE# self . assertEqual ( f . cls_name , 'FakeDocument' )