          output = self.engine.render_to_string('escape04', {"a": "x&y"})
          self.assertEqual(output, "x&amp;y")
  
      def test_escape_lazy_string(self):
          add_html = lazy(lambda string: string + 'special characters > here', six.text_type)
          escaped = escape(add_html('<some html & '))
          self.assertIsInstance(escaped, Promise)
          self.assertEqual(escaped, '&lt;some html &amp; special characters &gt; here')
  
  
 
</s> remove         lazy_str = lazy(lambda string: force_text(string), six.text_type)
 </s> add         lazy_str = lazy(lambda string: force_text(string), str) </s> remove         add_header = lazy(lambda string: 'Header\n\n' + string, six.text_type)
 </s> add         add_header = lazy(lambda string: 'Header\n\n' + string, str) </s> remove         append_script = lazy(lambda string: r'<script>this</script>' + string, six.text_type)
 </s> add         append_script = lazy(lambda string: r'<script>this</script>' + string, str) </s> remove         prepend_www = lazy(lambda url: 'www.' + url, six.text_type)
 </s> add         prepend_www = lazy(lambda url: 'www.' + url, str) </s> remove         self.assertIs(type(a.misc_data), six.text_type)
 </s> add 
        add_html = lazy(lambda string: string + 'special characters > here', str)
          output = self.engine.render_to_string('escape04', {"a": "x&y"})
          self.assertEqual(output, "x&amp;y")
  
      def test_escape_lazy_string(self):
        add_html = lazy(lambda string: string + 'special characters > here', str)
          escaped = escape(add_html('<some html & '))
          self.assertIsInstance(escaped, Promise)
          self.assertEqual(escaped, '&lt;some html &amp; special characters &gt; here')
  
  
keep keep keep keep replace keep keep keep keep keep
 Refs #23919 -- Removed six.<various>_types usage

Thanks Tim Graham and Simon Charette for the reviews. 
tests/template_tests/filter_tests/test_escape.py