コード例 #1
0
 def test_multiple(self):
     self.assertTrue(lib.is_proxy_set({
         "var1": "val",
         "https_proxy": "test.proxy",
         "var2": "val",
         "all_proxy": "test2.proxy",
         "var3": "val",
     }))
コード例 #2
0
ファイル: test_external.py プロジェクト: tomjelinek/pcs
 def test_multiple(self):
     self.assertTrue(lib.is_proxy_set({
         "var1": "val",
         "https_proxy": "test.proxy",
         "var2": "val",
         "all_proxy": "test2.proxy",
         "var3": "val",
     }))
コード例 #3
0
 def test_https_proxy(self):
     self.assertTrue(lib.is_proxy_set({
         "https_proxy": "test.proxy",
     }))
コード例 #4
0
 def test_HTTP_PROXY(self):
     # pylint: disable=invalid-name
     self.assertFalse(lib.is_proxy_set({
         "HTTP_PROXY": "test.proxy",
     }))
コード例 #5
0
 def test_http_proxy(self):
     self.assertFalse(lib.is_proxy_set({
         "http_proxy": "test.proxy",
     }))
コード例 #6
0
 def test_empty_string(self):
     self.assertFalse(lib.is_proxy_set({
         "all_proxy": "",
     }))
コード例 #7
0
 def test_without_proxy(self):
     self.assertFalse(lib.is_proxy_set({
         "var1": "value",
         "var2": "val",
     }))
コード例 #8
0
 def test_ALL_PROXY(self):
     self.assertTrue(lib.is_proxy_set({
         "ALL_PROXY": "test.proxy",
     }))
コード例 #9
0
ファイル: test_external.py プロジェクト: tomjelinek/pcs
 def test_no_proxy(self):
     self.assertTrue(lib.is_proxy_set({
         "no_proxy": "*",
         "all_proxy": "test.proxy",
     }))
コード例 #10
0
ファイル: test_external.py プロジェクト: tomjelinek/pcs
 def test_ALL_PROXY(self):
     # pylint: disable=invalid-name
     self.assertTrue(lib.is_proxy_set({
         "ALL_PROXY": "test.proxy",
     }))
コード例 #11
0
ファイル: test_external.py プロジェクト: tomjelinek/pcs
 def test_https_proxy(self):
     self.assertTrue(lib.is_proxy_set({
         "https_proxy": "test.proxy",
     }))
コード例 #12
0
ファイル: test_external.py プロジェクト: tomjelinek/pcs
 def test_HTTP_PROXY(self):
     # pylint: disable=invalid-name
     self.assertFalse(lib.is_proxy_set({
         "HTTP_PROXY": "test.proxy",
     }))
コード例 #13
0
ファイル: test_external.py プロジェクト: tomjelinek/pcs
 def test_http_proxy(self):
     self.assertFalse(lib.is_proxy_set({
         "http_proxy": "test.proxy",
     }))
コード例 #14
0
ファイル: test_external.py プロジェクト: tomjelinek/pcs
 def test_empty_string(self):
     self.assertFalse(lib.is_proxy_set({
         "all_proxy": "",
     }))
コード例 #15
0
 def test_ALL_PROXY(self):
     # pylint: disable=invalid-name
     self.assertTrue(lib.is_proxy_set({
         "ALL_PROXY": "test.proxy",
     }))
コード例 #16
0
ファイル: test_external.py プロジェクト: tomjelinek/pcs
 def test_without_proxy(self):
     self.assertFalse(lib.is_proxy_set({
         "var1": "value",
         "var2": "val",
     }))
コード例 #17
0
 def test_no_proxy(self):
     self.assertTrue(
         lib.is_proxy_set({
             "no_proxy": "*",
             "all_proxy": "test.proxy",
         }))
コード例 #18
0
 def test_HTTPS_PROXY(self):
     self.assertTrue(lib.is_proxy_set({
         "HTTPS_PROXY": "test.proxy",
     }))