              '<p>foo<br /><a>bar</a><br />buz</p>',
          )
  
      def test_lazy_string_input(self):
          add_header = lazy(lambda string: 'Header\n\n' + string, six.text_type)
          self.assertEqual(
              linebreaks_filter(add_header('line 1\r\nline2')),
              '<p>Header</p>\n\n<p>line 1<br />line2</p>'
          )
 
</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         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                     ([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)])
        add_header = lazy(lambda string: 'Header\n\n' + string, str)
              '<p>foo<br /><a>bar</a><br />buz</p>',
          )
  
      def test_lazy_string_input(self):
        add_header = lazy(lambda string: 'Header\n\n' + string, str)
          self.assertEqual(
              linebreaks_filter(add_header('line 1\r\nline2')),
              '<p>Header</p>\n\n<p>line 1<br />line2</p>'
          )
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_linebreaks.py