def test_empty(self): self.assertEqual(strip_punctuation(''), '')
def test_stripall(self): s = '!@#$%^<\'}{>&/?*[]()-_=+"`~' self.assertEqual(strip_punctuation(s), '')
def test_stripsome(self): s = '!@#$f%^o<\'o }{>b&/?a*r[]()-_=+"`~' self.assertEqual(strip_punctuation(s), 'foo bar')
def test_stripnone(self): s = 'the quick brown fox jumped far' self.assertEqual(strip_punctuation(s), s)