      def test_normalize_newlines_bytes(self):
          """normalize_newlines should be able to handle bytes too"""
          normalized = text.normalize_newlines(b"abc\ndef\rghi\r\n")
          self.assertEqual(normalized, "abc\ndef\nghi\n")
          self.assertIsInstance(normalized, six.text_type)
  
      def test_phone2numeric(self):
          numeric = text.phone2numeric('0800 flowers')
          self.assertEqual(numeric, '0800 3569377')
          lazy_numeric = lazystr(text.phone2numeric('0800 flowers'))
 
</s> remove         # Empty strings should be returned as Unicode
 </s> add         # Empty strings should be returned as string </s> remove         self.assertIs(type(a.misc_data), six.text_type)
 </s> add  </s> remove class customescape(six.text_type):
 </s> add class customescape(str): </s> remove         self.assertIsInstance(rel_name, six.text_type)
 </s> add         self.assertIsInstance(rel_name, str) </s> remove         self.assertTrue(issubclass(type(force_text(s)), six.text_type))
 </s> add         self.assertTrue(issubclass(type(force_text(s)), str))
      def test_normalize_newlines_bytes(self):
          """normalize_newlines should be able to handle bytes too"""
          normalized = text.normalize_newlines(b"abc\ndef\rghi\r\n")
          self.assertEqual(normalized, "abc\ndef\nghi\n")

  
      def test_phone2numeric(self):
          numeric = text.phone2numeric('0800 flowers')
          self.assertEqual(numeric, '0800 3569377')
          lazy_numeric = lazystr(text.phone2numeric('0800 flowers'))
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/utils_tests/test_text.py