def iplookup(args): api = ConnectApiClient(auth=args.rf_token) print(api.lookup_ip(args.ipaddress))
def test_get_ip(self): client = ConnectApiClient() resp = client.lookup_ip("8.8.8.8") self.assertIsInstance(resp, DotAccessDict)