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