              'foo<a href=" <a href="http://google.com" rel="nofollow">google.com</a> ">bar</a>buz',
          )
  
      def test_lazystring(self):
          prepend_www = lazy(lambda url: 'www.' + url, six.text_type)
          self.assertEqual(
              urlize(prepend_www('google.com')),
              '<a href="http://www.google.com" rel="nofollow">www.google.com</a>',
          )
 
</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         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_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                     ([six.text_type(self.author2)], [six.text_type(self.author3)]),
                    ([six.text_type(self.author3)], [six.text_type(self.author1)]),
                    ([six.text_type(self.author1)], [six.text_type(self.author2)])
 </s> add                     ([str(self.author2)], [str(self.author3)]),
                    ([str(self.author3)], [str(self.author1)]),
                    ([str(self.author1)], [str(self.author2)])
        prepend_www = lazy(lambda url: 'www.' + url, str)
              'foo<a href=" <a href="http://google.com" rel="nofollow">google.com</a> ">bar</a>buz',
          )
  
      def test_lazystring(self):
        prepend_www = lazy(lambda url: 'www.' + url, str)
          self.assertEqual(
              urlize(prepend_www('google.com')),
              '<a href="http://www.google.com" rel="nofollow">www.google.com</a>',
          )
keep keep keep keep replace 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_urlize.py