  
      @classmethod
      def tearDownClass(cls):
          assert urlpatterns is cls.urlpatterns
          super(TestUrlPatternTestCase, cls).tearDownClass()
          assert urlpatterns is not cls.urlpatterns
  
      def test_urlpatterns(self):
          assert self.client.get('/').status_code == 200
  
 
</s> remove         super(TestUrlPatternTestCase, cls).setUpClass()
 </s> add         super().setUpClass() </s> remove         super(URLPatternsTestCase, cls).setUpClass()
 </s> add         super().setUpClass() </s> remove         assert serializer['amount'].value is 123
 </s> add         assert serializer['amount'].value == 123 </s> remove         assert field.run_validation(1) is 1
 </s> add         assert field.run_validation(1) == 1 </s> remove         assert serializer['amount'].value is 123
 </s> add         assert serializer['amount'].value == 123
        super().tearDownClass()
  
      @classmethod
      def tearDownClass(cls):
          assert urlpatterns is cls.urlpatterns
        super().tearDownClass()
          assert urlpatterns is not cls.urlpatterns
  
      def test_urlpatterns(self):
          assert self.client.get('/').status_code == 200
  
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/test_testing.py