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()
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))