          # Edit an instance that already has the (required) image defined in the model. This will not
          # save the image again, but leave it exactly as it is.
  
          f = ImageFileForm(data={'description': 'Look, it changed'}, instance=instance)
          self.assertEqual(f.is_valid(), True)
          self.assertEqual(f.cleaned_data['image'].name, 'tests/test.png')
          instance = f.save()
          self.assertEqual(instance.image.name, 'tests/test.png')
          self.assertEqual(instance.height, 16)
          self.assertEqual(instance.width, 16)
 
</s> remove         self.assertEqual(f.is_valid(), False)
 </s> add         self.assertFalse(f.is_valid()) </s> remove         self.assertEqual(f.is_valid(), True)
 </s> add         self.assertTrue(f.is_valid()) </s> remove         self.assertEqual(f.is_valid(), True)
 </s> add         self.assertTrue(f.is_valid()) </s> remove         self.assertEqual(f.is_valid(), True)
 </s> add         self.assertTrue(f.is_valid()) </s> remove         self.assertEqual(f.is_valid(), True)
 </s> add         self.assertTrue(f.is_valid())
        self.assertTrue(f.is_valid())
          # Edit an instance that already has the (required) image defined in the model. This will not
          # save the image again, but leave it exactly as it is.
  
          f = ImageFileForm(data={'description': 'Look, it changed'}, instance=instance)
        self.assertTrue(f.is_valid())
          self.assertEqual(f.cleaned_data['image'].name, 'tests/test.png')
          instance = f.save()
          self.assertEqual(instance.image.name, 'tests/test.png')
          self.assertEqual(instance.height, 16)
          self.assertEqual(instance.width, 16)
keep keep keep keep replace keep keep keep keep keep
 Fixed #6103 -- Splitted tests in model_forms tests 
tests/model_forms/tests.py