예제 #1
0
파일: model.py 프로젝트: stbenjam/gofer
 def validate(self):
     """
     Validate properties.
     :raise: ValueError
     """
     valid_path(self.ca_certificate)
     valid_path(self.client_certificate)
     valid_path(self.client_key)
예제 #2
0
 def test_valid(self):
     with open(self.path, 'a'):
         try:
             valid_path(self.path)
         except ValueError:
             self.fail('Value error not expected')
예제 #3
0
 def test_valid(self):
     with open(self.path, 'a'):
         try:
             valid_path(self.path)
         except ValueError:
             self.fail('Value error not expected')