def validate(self): """ Validate properties. :raise: ValueError """ valid_path(self.ca_certificate) valid_path(self.client_certificate) valid_path(self.client_key)
def test_valid(self): with open(self.path, 'a'): try: valid_path(self.path) except ValueError: self.fail('Value error not expected')