                  "<Child4: f2>"
          ]
          )
          self.assertQuerysetEqual(Child4.manager1.all(), [
                  "<Child4: d1>",
                  "<Child4: f1>"
          ],
              ordered=False
          )
          self.assertQuerysetEqual(Child5._default_manager.all(), ["<Child5: fred>"])
          self.assertQuerysetEqual(Child6._default_manager.all(), ["<Child6: f1>"])
 
</s> remove                 "<Child7: barney>",
                "<Child7: fred>"
 </s> add             "<Child7: barney>",
            "<Child7: fred>" </s> remove                 Party.objects.filter(when__year=1), [
                        datetime.date(1, 3, 3),
                ],
                attrgetter("when")
 </s> add             Party.objects.filter(when__year=1), [
                datetime.date(1, 3, 3),
            ],
            attrgetter("when") </s> remove                 "<Article: Article 6>",
                "<Article: Article 7>",
                "<Article: Article 8>",
                "<Article: Article 9>"
 </s> add             "<Article: Article 6>",
            "<Article: Article 7>",
            "<Article: Article 8>",
            "<Article: Article 9>" </s> remove                 "<Article: Article 1>",
                "<Article: Article 2>",
                "<Article: Article 3>",
                "<Article: Article 4>",
                "<Article: Article 5>"
 </s> add             "<Article: Article 1>",
            "<Article: Article 2>",
            "<Article: Article 3>",
            "<Article: Article 4>",
            "<Article: Article 5>" </s> remove                 Party.objects.filter(when__year='1'), [
                        datetime.date(1, 3, 3),
                ],
                attrgetter("when")
 </s> add             Party.objects.filter(when__year='1'), [
                datetime.date(1, 3, 3),
            ],
            attrgetter("when")
            "<Child4: d1>",
            "<Child4: f1>"
                  "<Child4: f2>"
          ]
          )
          self.assertQuerysetEqual(Child4.manager1.all(), [
            "<Child4: d1>",
            "<Child4: f1>"
            "<Child4: d1>",
            "<Child4: f1>"
          ],
              ordered=False
          )
          self.assertQuerysetEqual(Child5._default_manager.all(), ["<Child5: fred>"])
          self.assertQuerysetEqual(Child6._default_manager.all(), ["<Child6: f1>"])
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21288 -- Fixed E126 pep8 warnings 
tests/managers_regress/tests.py