          instance.delete()
  
          # Test the non-required FileField
          f = TextFileForm(data={'description': 'Assistance'})
          f.fields['file'].required = False
          self.assertTrue(f.is_valid())
          instance = f.save()
          self.assertEqual(instance.file.name, '')
 
</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(), 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(), False)
 </s> add         self.assertFalse(f.is_valid())
    def test_onetoonefield_required_false(self):
          instance.delete()
  
    def test_onetoonefield_required_false(self):
          # Test the non-required FileField
          f = TextFileForm(data={'description': 'Assistance'})
          f.fields['file'].required = False
          self.assertTrue(f.is_valid())
          instance = f.save()
          self.assertEqual(instance.file.name, '')
keep add keep keep keep keep keep keep
 Fixed #6103 -- Splitted tests in model_forms tests 
tests/model_forms/tests.py