예제 #1
0
 def test_empty(self):
     self.assertEqual(valid.not_empty("text"), "text")
     with self.assertRaises(ValueError):
         valid.not_empty("")
예제 #2
0
 def test_empty(self):
     self.assertEqual(valid.not_empty("text"), "text")
     with self.assertRaises(ValueError):
         valid.not_empty("")