old_contents: # -*- coding: utf-8 -*-
  """
  Test text handling library module.
  """
  from __future__ import absolute_import
  from unittest import TestCase
  
  import lib.text_handling
  
  
  class TestTextHandling(TestCase):
  
      def test_flattenText(self):
          flattenText = lib.text_handling.flattenText
  
          self.assertEqual("abc", flattenText("abc"))
          self.assertEqual("a bc", flattenText("a\r\nbc"))
          self.assertEqual("ab c", flattenText("ab\nc"))
          self.assertEqual("a;bc", flattenText("a\r\nbc", ";"))
  
      def test_stripSymbols(self):
          stripSymbols = lib.text_handling.stripSymbols
  
          cases = (
              (
                  "I am a #Tweet, but need cleaning! ^-^ Why don't you help me,"
                  " my friend @jamie_123?",
                  "I am a Tweet but need cleaning Why dont you help me"
                  " my friend jamie123",
              ),
              (
                  u"I’m a #unicode string with unicode symbol near the start!",
                  "Im a unicode string with unicode symbol near the start",
              ),
          )
          for test_input, expected_output in cases:
              result = " ".join(stripSymbols(test_input))
              self.assertEqual(
                  result,
                  expected_output,
              )
  
new_contents: # -*- coding: utf-8 -*-
  """
  Test text handling library module.
  """
  from __future__ import absolute_import
  from unittest import TestCase
  
  import lib.text_handling
  
  
  class TestTextHandling(TestCase):
  
      def test_flattenText(self):
          flattenText = lib.text_handling.flattenText
  
          self.assertEqual("abc", flattenText("abc"))
          self.assertEqual("a bc", flattenText("a\r\nbc"))
          self.assertEqual("ab c", flattenText("ab\nc"))
          self.assertEqual("a;bc", flattenText("a\r\nbc", ";"))
  
      def test_stripSymbols(self):
          stripSymbols = lib.text_handling.stripSymbols
  
          cases = (
              (
                  "I am a #Tweet, but need cleaning! ^-^ Why don't you help me,"
                  " my friend @jamie_123?",
                  "I am a Tweet but need cleaning Why dont you help me"
                  " my friend jamie123",
              ),
              (
                  "I am a #unicode string with unicode symbol near the start!",
                  "I am a unicode string with unicode symbol near the start",
              ),
          )
          for test_input, expected_output in cases:
              result = " ".join(stripSymbols(test_input))
              self.assertEqual(
                  result,
                  expected_output,
              )
  
subject: Remove problem character