# Path: modules/utils/text.py
# def clean_text(text):


import unittest
from modules.utils import text
# -*- coding: utf-8 -*-



class UtilsTestCase(unittest.TestCase):

    def test_clean_text_should_remove_inappropriate_chars(self):
        line = u'This :;requirement? # !is @only = $necessary %when ^you &place *your (1st ;order |with us, Mr -. а также кириллица 何か'
        expected = u'This requirement  is only  necessary when you place your 1st order with us, Mr -. а также кириллица 何か'

# Path: modules/utils/text.py
# def clean_text(text):


# Path: tests/test_utils.py
import unittest
from modules.utils import text

# -*- coding: utf-8 -*-



class UtilsTestCase(unittest.TestCase):

    def test_clean_text_should_remove_inappropriate_chars(self):
        line = u'This :;requirement? # !is @only = $necessary %when ^you &place *your (1st ;order |with us, Mr -. а также кириллица 何か'
        expected = u'This requirement  is only  necessary when you place your 1st order with us, Mr -. а также кириллица 何か'

        self.assertEqual(text.clean_text(line), expected)