def test_remove_tags_numeric(self): s = pd.Series("Hi @123, we will remove you") s_true = pd.Series("Hi , we will remove you") self.assertEqual(preprocessing.remove_tags(s), s_true)
def test_remove_tags_alphabets(self): s = pd.Series("Hi @tag, we will remove you") s_true = pd.Series("Hi , we will remove you") self.assertEqual(preprocessing.remove_tags(s), s_true)