Пример #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_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
 def test_no_proxy(self):
     self.assertTrue(lib.is_proxy_set({
         "no_proxy": "*",
         "all_proxy": "test.proxy",
     }))
Пример #10
0
 def test_ALL_PROXY(self):
     # pylint: disable=invalid-name
     self.assertTrue(lib.is_proxy_set({
         "ALL_PROXY": "test.proxy",
     }))
Пример #11
0
 def test_https_proxy(self):
     self.assertTrue(lib.is_proxy_set({
         "https_proxy": "test.proxy",
     }))
Пример #12
0
 def test_HTTP_PROXY(self):
     # pylint: disable=invalid-name
     self.assertFalse(lib.is_proxy_set({
         "HTTP_PROXY": "test.proxy",
     }))
Пример #13
0
 def test_http_proxy(self):
     self.assertFalse(lib.is_proxy_set({
         "http_proxy": "test.proxy",
     }))
Пример #14
0
 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
 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",
     }))