Esempio n. 1
0
 def test_empty(self):
     self.assertEqual(valid.not_empty("text"), "text")
     with self.assertRaises(ValueError):
         valid.not_empty("")
Esempio n. 2
0
 def test_empty(self):
     self.assertEqual(valid.not_empty("text"), "text")
     with self.assertRaises(ValueError):
         valid.not_empty("")