'Tests assignment using the field\'s save method and deletion using
the field\'s delete method.'

def test_field_save_and_delete_methods(self):

    p = self.PersonModel(name='Joe')
    p.mugshot.save('mug', self.file1)
    self.check_dimensions(p, 4, 8)
    p.mugshot.save('mug', self.file2)
    self.check_dimensions(p, 8, 4)
    p.mugshot.delete(save=False)
    self.assertEqual(p.mugshot, None)
    self.check_dimensions(p, None, None)
