              'paragraph separator:\\u2029and line separator:\\u2028',
          )
  
      def test_lazy_string(self):
          append_script = lazy(lambda string: r'<script>this</script>' + string, six.text_type)
          self.assertEqual(
              escapejs_filter(append_script('whitespace: \r\n\t\v\f\b')),
              '\\u003Cscript\\u003Ethis\\u003C/script\\u003E'
              'whitespace: \\u000D\\u000A\\u0009\\u000B\\u000C\\u0008'
          )
 
</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         lazy_str = lazy(lambda string: force_text(string), six.text_type)
 </s> add         lazy_str = lazy(lambda string: force_text(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         add_html = lazy(lambda string: string + 'special characters > here', six.text_type)
 </s> add         add_html = lazy(lambda string: string + 'special characters > here', str) </s> remove     return line == ('\n' if isinstance(line, six.text_type) else b'\n')
 </s> add     return line == ('\n' if isinstance(line, str) else b'\n')
        append_script = lazy(lambda string: r'<script>this</script>' + string, str)
              'paragraph separator:\\u2029and line separator:\\u2028',
          )
  
      def test_lazy_string(self):
        append_script = lazy(lambda string: r'<script>this</script>' + string, str)
          self.assertEqual(
              escapejs_filter(append_script('whitespace: \r\n\t\v\f\b')),
              '\\u003Cscript\\u003Ethis\\u003C/script\\u003E'
              'whitespace: \\u000D\\u000A\\u0009\\u000B\\u000C\\u0008'
          )
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_escapejs.py