  
          f = TextFileForm(
              data={'description': 'Assistance'},
              files={'file': SimpleUploadedFile('test2.txt', b'hello world')}, instance=instance)
          self.assertEqual(f.is_valid(), True)
          instance = f.save()
          self.assertEqual(instance.file.name, 'tests/test2.txt')
  
          # Delete the current file since this is not done by Django.
          instance.file.delete()
          f = TextFileForm(
              data={'description': 'Assistance'},
              files={'file': SimpleUploadedFile('test2.txt', b'hello world')})
          self.assertEqual(f.is_valid(), True)
          instance = f.save()
          self.assertEqual(instance.file.name, 'tests/test2.txt')
  
          # Delete the current file since this is not done by Django.
          instance.file.delete()
 
</s> remove         f = TextFileForm(
            data={'description': 'Assistance'},
            files={'file': SimpleUploadedFile('test3.txt', b'hello world')})
        self.assertEqual(f.is_valid(), True)
        instance = f.save()
        self.assertEqual(instance.file.name, 'tests/test3.txt')

        # Delete the current file since this is not done by Django.
        instance.file.delete()
        instance.delete()

 </s> add  </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())
  
          f = TextFileForm(
              data={'description': 'Assistance'},
              files={'file': SimpleUploadedFile('test2.txt', b'hello world')}, instance=instance)
        self.assertTrue(f.is_valid())
        self.assertTrue(f.is_valid())
        self.assertTrue(f.is_valid())
        self.assertTrue(f.is_valid())
        self.assertTrue(f.is_valid())
        self.assertTrue(f.is_valid())
        self.assertTrue(f.is_valid())
        self.assertTrue(f.is_valid())
        self.assertTrue(f.is_valid())
        self.assertTrue(f.is_valid())
          instance = f.save()
          self.assertEqual(instance.file.name, 'tests/test2.txt')
  
          # Delete the current file since this is not done by Django.
          instance.file.delete()
keep keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Fixed #6103 -- Splitted tests in model_forms tests 
tests/model_forms/tests.py