#NEWLINE# def test_field_save_and_delete_methods( self ) : #NEWLINE# #INDENT# "\n            Tests assignment using the field's save method and deletion using\n            the field's delete method.\n            " #NEWLINE# p = self . PersonModel ( name = 'Joe' ) #NEWLINE# p . mugshot . save ( 'mug' , self . file1 ) #NEWLINE# self . check_dimensions ( self , 4 , 8 ) #NEWLINE# p . mugshot . save ( 'mug' , self . file2 ) #NEWLINE# self . check_dimensions ( p , 8 , 4 ) #NEWLINE# p . mugshot . delete ( save = False ) #NEWLINE# self . assertEqual ( p . mugshot , None ) #NEWLINE# self . check_dimensions ( p , None , None )