      def test_pickling(self):
          # Create a template response. The context is
          # known to be unpickleable (e.g., a function).
          response = SimpleTemplateResponse('first/test.html', {
                  'value': 123,
                  'fn': datetime.now,
          })
          self.assertRaises(ContentNotRenderedError,
                            pickle.dumps, response)
  
          # But if we render the response, we can pickle it.
 
</s> remove                 'value': 123,
                'fn': datetime.now,
 </s> add             'value': 123,
            'fn': datetime.now, </s> remove                 'value': 123,
                'fn': datetime.now,
 </s> add             'value': 123,
            'fn': datetime.now, </s> remove                 'value': 123,
                'fn': datetime.now,
 </s> add             'value': 123,
            'fn': datetime.now, </s> remove                         reporter__in=Reporter.objects.filter(first_name='John').values('pk').query
                    ).distinct(),
 </s> add                 reporter__in=Reporter.objects.filter(first_name='John').values('pk').query
            ).distinct(), </s> remove                 related_modeladmin = self.admin_site._registry.get(
                                                            db_field.rel.to)
 </s> add                 related_modeladmin = self.admin_site._registry.get(db_field.rel.to)
            'value': 123,
            'fn': datetime.now,
      def test_pickling(self):
          # Create a template response. The context is
          # known to be unpickleable (e.g., a function).
          response = SimpleTemplateResponse('first/test.html', {
            'value': 123,
            'fn': datetime.now,
            'value': 123,
            'fn': datetime.now,
          })
          self.assertRaises(ContentNotRenderedError,
                            pickle.dumps, response)
  
          # But if we render the response, we can pickle it.
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21288 -- Fixed E126 pep8 warnings 
tests/template_tests/test_response.py