          # Edit an instance that already has the file defined in the model. This will not
          # save the file again, but leave it exactly as it is.
  
          f = TextFileForm(
                  data={'description': 'Assistance'},
                  instance=instance)
          self.assertEqual(f.is_valid(), True)
          self.assertEqual(f.cleaned_data['file'].name, 'tests/test1.txt')
          instance = f.save()
          self.assertEqual(instance.file.name, 'tests/test1.txt')
  
 
</s> remove                 data={'description': 'Assistance'},
                files={'file': SimpleUploadedFile('test-maxlength.txt', b'hello world')})
 </s> add             data={'description': 'Assistance'},
            files={'file': SimpleUploadedFile('test-maxlength.txt', b'hello world')}) </s> remove                 data={'description': 'Assistance'},
                files={'file': SimpleUploadedFile('test1.txt', b'hello world')})
 </s> add             data={'description': 'Assistance'},
            files={'file': SimpleUploadedFile('test1.txt', b'hello world')}) </s> remove                 data={'description': 'Assistance'},
                files={'file': SimpleUploadedFile('test3.txt', b'hello world')}, instance=instance)
 </s> add             data={'description': 'Assistance'},
            files={'file': SimpleUploadedFile('test3.txt', b'hello world')}, instance=instance) </s> remove                 data={'description': 'Assistance'},
                files={'file': SimpleUploadedFile('test2.txt', b'hello world')}, instance=instance)
 </s> add             data={'description': 'Assistance'},
            files={'file': SimpleUploadedFile('test2.txt', b'hello world')}, instance=instance) </s> remove                 data={'description': 'Assistance'},
                files={'file': SimpleUploadedFile('test1.txt', b'hello world')})
 </s> add             data={'description': 'Assistance'},
            files={'file': SimpleUploadedFile('test1.txt', b'hello world')})
            data={'description': 'Assistance'},
            instance=instance)
          # Edit an instance that already has the file defined in the model. This will not
          # save the file again, but leave it exactly as it is.
  
          f = TextFileForm(
            data={'description': 'Assistance'},
            instance=instance)
            data={'description': 'Assistance'},
            instance=instance)
          self.assertEqual(f.is_valid(), True)
          self.assertEqual(f.cleaned_data['file'].name, 'tests/test1.txt')
          instance = f.save()
          self.assertEqual(instance.file.name, 'tests/test1.txt')
  
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21288 -- Fixed E126 pep8 warnings 
tests/model_forms/tests.py