コード例 #1
0
ファイル: test_https.py プロジェクト: azarmadr/quodlibet
 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()
コード例 #2
0
ファイル: test_https.py プロジェクト: gbtami/quodlibet
 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()
コード例 #3
0
ファイル: test_util.py プロジェクト: ptitjes/quodlibet
 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))
コード例 #4
0
ファイル: test_util.py プロジェクト: Muges/quodlibet
 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))