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