Esempio n. 1
0
 def test_should_replace_carriage_return_with_space(self):
     assert clean_text('a\rb') == 'a b'
Esempio n. 2
0
 def test_should_replace_line_feed_with_space(self):
     assert clean_text('a\nb') == 'a b'
Esempio n. 3
0
 def test_should_replace_double_space_with_single_space(self):
     assert clean_text('a  b') == 'a b'
Esempio n. 4
0
 def test_should_replace_multiple_whitespace_with_single_space(self):
     assert clean_text('a \r\n b') == 'a b'
Esempio n. 5
0
 def test_should_replace_tab_with_space(self):
     assert clean_text('a\tb') == 'a b'