def test_signs(self): self.assertEqual(prepare_text("Dots. And commas, not removed"), 'dots. and commas, not removed') self.assertEqual(prepare_text('Other "signs" *are (remove^d'), 'other signs are remove d') self.assertEqual(prepare_text(" 'quotes and dashes - remove"), ' quotes and dashes remove') self.assertEqual(prepare_text("Charles de Batz-Castelmore D'artagnan"), "charles de batz-castelmore d'artagnan")
def test_will_not(self): self.assertEqual(prepare_text("Won't it be great"), "will not it be great")
def test_d(self): self.assertEqual(prepare_text("it'd be"), 'it be')
def test_ellipsis(self): self.assertEqual(prepare_text("He..now"), 'he... now')
def test_s(self): self.assertEqual(prepare_text("it's been"), 'it been')
def test_let_us(self): self.assertEqual(prepare_text("Let's think"), 'let us think')
def test_dot(self): self.assertEqual(prepare_text("here.Go now"), 'here. go now')
def test_am(self): self.assertEqual(prepare_text("I'm certain"), 'i am certain')
def test_have(self): self.assertEqual(prepare_text("you've made it"), 'you have made it')
def test_will(self): self.assertEqual(prepare_text("SHE'LL BE HAPPY"), 'she will be happy')
def test_are(self): self.assertEqual(prepare_text("You're a nice guy"), 'you are a nice guy')
def test_not(self): self.assertEqual(prepare_text("Don't you dare"), 'do not you dare')