예제 #1
0
 def test_cloze(self):
     self.assertEqual(cleanup('{{c1::foo::bar}}'), 'foo')
예제 #2
0
 def test_empty_string(self):
     self.assertEqual(cleanup(''), '')
예제 #3
0
 def test_none(self):
     with self.assertRaises(ValueError):
         cleanup(None)
예제 #4
0
 def test_whitespace(self):
     self.assertEqual(cleanup(' \t '), '')