  <option value="3">Live</option>
  </select></li>''' % (w_woodward.pk, w_royko.pk, c1.pk, c2.pk, c3.pk))
  
          f = TestArticleForm({
                  'headline': 'New headline',
                  'slug': 'new-headline',
                  'pub_date': '1988-01-04',
                  'writer': six.text_type(w_royko.pk),
                  'article': 'Hello.',
                  'categories': [six.text_type(c1.id), six.text_type(c2.id)]
          }, instance=new_art)
          new_art = f.save()
          self.assertEqual(new_art.id == art_id_1, True)
          new_art = Article.objects.get(id=art_id_1)
          self.assertQuerysetEqual(new_art.categories.order_by('name'),
 
</s> remove                 'headline': 'Test headline',
                'slug': 'test-headline',
                'pub_date': '1984-02-06',
                'writer': six.text_type(w_royko.pk),
                'article': 'Hello.'
 </s> add             'headline': 'Test headline',
            'slug': 'test-headline',
            'pub_date': '1984-02-06',
            'writer': six.text_type(w_royko.pk),
            'article': 'Hello.' </s> remove                 auto_id=False,
                initial={
                    'headline': 'Your headline here',
                    'categories': [str(c1.id), str(c2.id)]
                })
 </s> add             auto_id=False,
            initial={
                'headline': 'Your headline here',
                'categories': [str(c1.id), str(c2.id)]
            }) </s> remove                 'headline': 'New headline',
                'slug': 'new-headline',
                'pub_date': '1988-01-04'
 </s> add             'headline': 'New headline',
            'slug': 'new-headline',
            'pub_date': '1988-01-04' </s> remove                 data={'description': 'New Description'},
                instance=instance)
 </s> add             data={'description': 'New Description'},
            instance=instance) </s> remove                 data={'description': 'New Description'},
                instance=instance)
 </s> add             data={'description': 'New Description'},
            instance=instance)
            'headline': 'New headline',
            'slug': 'new-headline',
            'pub_date': '1988-01-04',
            'writer': six.text_type(w_royko.pk),
            'article': 'Hello.',
            'categories': [six.text_type(c1.id), six.text_type(c2.id)]
  <option value="3">Live</option>
  </select></li>''' % (w_woodward.pk, w_royko.pk, c1.pk, c2.pk, c3.pk))
  
          f = TestArticleForm({
            'headline': 'New headline',
            'slug': 'new-headline',
            'pub_date': '1988-01-04',
            'writer': six.text_type(w_royko.pk),
            'article': 'Hello.',
            'categories': [six.text_type(c1.id), six.text_type(c2.id)]
            'headline': 'New headline',
            'slug': 'new-headline',
            'pub_date': '1988-01-04',
            'writer': six.text_type(w_royko.pk),
            'article': 'Hello.',
            'categories': [six.text_type(c1.id), six.text_type(c2.id)]
            'headline': 'New headline',
            'slug': 'new-headline',
            'pub_date': '1988-01-04',
            'writer': six.text_type(w_royko.pk),
            'article': 'Hello.',
            'categories': [six.text_type(c1.id), six.text_type(c2.id)]
            'headline': 'New headline',
            'slug': 'new-headline',
            'pub_date': '1988-01-04',
            'writer': six.text_type(w_royko.pk),
            'article': 'Hello.',
            'categories': [six.text_type(c1.id), six.text_type(c2.id)]
            'headline': 'New headline',
            'slug': 'new-headline',
            'pub_date': '1988-01-04',
            'writer': six.text_type(w_royko.pk),
            'article': 'Hello.',
            'categories': [six.text_type(c1.id), six.text_type(c2.id)]
            'headline': 'New headline',
            'slug': 'new-headline',
            'pub_date': '1988-01-04',
            'writer': six.text_type(w_royko.pk),
            'article': 'Hello.',
            'categories': [six.text_type(c1.id), six.text_type(c2.id)]
          }, instance=new_art)
          new_art = f.save()
          self.assertEqual(new_art.id == art_id_1, True)
          new_art = Article.objects.get(id=art_id_1)
          self.assertQuerysetEqual(new_art.categories.order_by('name'),
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 Fixed #21288 -- Fixed E126 pep8 warnings 
tests/model_forms/tests.py