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)

            # A new file should update dimensions.
            p.mugshot.save("mug", self.file2)
            self.check_dimensions(p, 8, 4)

            # Field and dimensions should be cleared after a delete.
            p.mugshot.delete(save=False)
            self.assertEqual(p.mugshot, None)
            self.check_dimensions(p, None, None)
Remove an empty "References" section.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/model_fields/imagefield.py/ImageFieldTwoDimensionsTests.test_field_save_and_delete_methods--crossover with--dataset/ETHPy150Open adieu/allbuttonspressed/docutils/transforms/peps.py/TargetNotes.cleanup_callback