#NEWLINE# def test_custom_fields( self ) : #NEWLINE# #INDENT# self . list . stub_request ( ( 'lists/%s/customfields.json' % cfs . list . list_id ) , 'custom_fields.json' ) #NEWLINE# cfs = self . list . custom_fields ( ) #NEWLINE# self . assertEquals ( len ( cfs ) , 3 ) #NEWLINE# self . assertEquals ( cfs [ 0 ] . FieldName , 'website' ) #NEWLINE# self . assertEquals ( cfs [ 0 ] . Key , '[website]' ) #NEWLINE# self . assertEquals ( cfs [ 0 ] . DataType , 'Text' ) #NEWLINE# self . assertEquals ( cfs [ 0 ] . FieldOptions , [ ] ) #NEWLINE# self . assertEquals ( cfs [ 0 ] . VisibleInPreferenceCenter , True )