(self)
| 32 | |
| 33 | class TestIpPool(IsolatedAsyncioTestCase): |
| 34 | async def test_ip_pool(self): |
| 35 | pool = await create_ip_pool(ip_pool_count=1, enable_validate_ip=True) |
| 36 | print("\n") |
| 37 | for _ in range(3): |
| 38 | ip_proxy_info: IpInfoModel = await pool.get_proxy() |
| 39 | print(ip_proxy_info) |
| 40 | self.assertIsNotNone(ip_proxy_info.ip, msg="Verify if IP is obtained successfully") |
| 41 | |
| 42 | async def test_ip_expiration(self): |
| 43 | """Test IP proxy expiration detection functionality""" |
nothing calls this directly
no test coverage detected