Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 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))
Ejemplo n.º 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))