Esempio n. 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",
     }))
Esempio n. 2
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",
     }))
Esempio n. 3
0
 def test_https_proxy(self):
     self.assertTrue(lib.is_proxy_set({
         "https_proxy": "test.proxy",
     }))
Esempio n. 4
0
 def test_HTTP_PROXY(self):
     # pylint: disable=invalid-name
     self.assertFalse(lib.is_proxy_set({
         "HTTP_PROXY": "test.proxy",
     }))
Esempio n. 5
0
 def test_http_proxy(self):
     self.assertFalse(lib.is_proxy_set({
         "http_proxy": "test.proxy",
     }))
Esempio n. 6
0
 def test_empty_string(self):
     self.assertFalse(lib.is_proxy_set({
         "all_proxy": "",
     }))
Esempio n. 7
0
 def test_without_proxy(self):
     self.assertFalse(lib.is_proxy_set({
         "var1": "value",
         "var2": "val",
     }))
Esempio n. 8
0
 def test_ALL_PROXY(self):
     self.assertTrue(lib.is_proxy_set({
         "ALL_PROXY": "test.proxy",
     }))
Esempio n. 9
0
 def test_no_proxy(self):
     self.assertTrue(lib.is_proxy_set({
         "no_proxy": "*",
         "all_proxy": "test.proxy",
     }))
Esempio n. 10
0
 def test_ALL_PROXY(self):
     # pylint: disable=invalid-name
     self.assertTrue(lib.is_proxy_set({
         "ALL_PROXY": "test.proxy",
     }))
Esempio n. 11
0
 def test_https_proxy(self):
     self.assertTrue(lib.is_proxy_set({
         "https_proxy": "test.proxy",
     }))
Esempio n. 12
0
 def test_HTTP_PROXY(self):
     # pylint: disable=invalid-name
     self.assertFalse(lib.is_proxy_set({
         "HTTP_PROXY": "test.proxy",
     }))
Esempio n. 13
0
 def test_http_proxy(self):
     self.assertFalse(lib.is_proxy_set({
         "http_proxy": "test.proxy",
     }))
Esempio n. 14
0
 def test_empty_string(self):
     self.assertFalse(lib.is_proxy_set({
         "all_proxy": "",
     }))
Esempio n. 15
0
 def test_ALL_PROXY(self):
     # pylint: disable=invalid-name
     self.assertTrue(lib.is_proxy_set({
         "ALL_PROXY": "test.proxy",
     }))
Esempio n. 16
0
 def test_without_proxy(self):
     self.assertFalse(lib.is_proxy_set({
         "var1": "value",
         "var2": "val",
     }))
Esempio n. 17
0
 def test_no_proxy(self):
     self.assertTrue(
         lib.is_proxy_set({
             "no_proxy": "*",
             "all_proxy": "test.proxy",
         }))
Esempio n. 18
0
 def test_HTTPS_PROXY(self):
     self.assertTrue(lib.is_proxy_set({
         "HTTPS_PROXY": "test.proxy",
     }))