def test_clean_word_mixed(self): """Test clean_word with markers, drawls, pauses and blocking.""" actual_output = CHATCleaner.clean_word('^ka:l^e@e') desired_output = 'kale' self.assertEqual(actual_output, desired_output)
def test_clean_word_empty_string(self): """Test clean_word with an empty string.""" actual_output = CHATCleaner.clean_word('') desired_output = '' self.assertEqual(actual_output, desired_output)
def test_clean_word_already_clean(self): """Test clean_word with an already clean word.""" actual_output = CHATCleaner.clean_word('ka') desired_output = 'ka' self.assertEqual(actual_output, desired_output)