#NEWLINE# def test_update_custom_field( self ) : #NEWLINE# #INDENT# key = '[mycustomfield]' #NEWLINE# self . list . stub_request ( ( 'lists/%s/customfields/%s.json' % ( self . list . list_id , urllib . quote ( key ) ) ) , 'update_custom_field.json' , None , '{"FieldName": "my renamed custom field", "VisibleInPreferenceCenter": true}' ) #NEWLINE# personalisation_tag = self . list . update_custom_field ( key , 'my renamed custom field' , True ) #NEWLINE# self . assertEquals ( personalisation_tag , '[myrenamedcustomfield]' )