def test_confstr(self):
     if hasattr(posix, 'confstr'):
         self.assertRaises(ValueError, posix.confstr, "CS_garbage")
         self.assertEqual(len(posix.confstr("CS_PATH")) > 0, True)
예제 #2
0
파일: test_posix.py 프로젝트: pieper/python
 def test_confstr(self):
     if hasattr(posix, 'confstr'):
         self.assertRaises(ValueError, posix.confstr, "CS_garbage")
         self.assertEqual(len(posix.confstr("CS_PATH")) > 0, True)