예제 #1
0
 def test_FreeProxyParser(self):
     with HTTMock(free_proxy_mock):
         proxy_provider = FreeProxyParser('FreeProxy', 'http://free-proxy-list.net')
         proxy_list = proxy_provider.parse_proxyList()
         proxy_list_addr = []
         for proxy in proxy_list:
             proxy_list_addr.append(proxy.get_address())
     self.assertEqual(proxy_list_addr, free_proxy_expected)
예제 #2
0
 def test_FreeProxyParser(self):
     with HTTMock(free_proxy_mock):
         proxy_provider = FreeProxyParser('http://free-proxy-list.net')
         proxy_list = proxy_provider.parse_proxyList()
     self.assertEqual(proxy_list, free_proxy_expected)