Exemple #1
0
 def test_urllib(self):
     for url in self.GOOD:
         urlopen(url, cafile=get_ca_file()).close()
     for url in self.BAD:
         with self.assertRaises(Exception):
             urlopen(url, cafile=get_ca_file()).close()
Exemple #2
0
 def test_urllib(self):
     for url in self.GOOD:
         urlopen(url, cafile=get_ca_file()).close()
     for url in self.BAD:
         with self.assertRaises(Exception):
             urlopen(url, cafile=get_ca_file()).close()
Exemple #3
0
 def test_main(self):
     path = util.get_ca_file()
     if path is not None:
         self.assertTrue(isinstance(path, fsnative))
         self.assertTrue(os.path.exists(path))
Exemple #4
0
 def test_main(self):
     path = util.get_ca_file()
     if path is not None:
         self.assertTrue(isinstance(path, fsnative))
         self.assertTrue(os.path.exists(path))