def _populate_dummy(cls, to_populate): from lib import WsFaker to_populate.geolocation = WsFaker.get_geohash() to_populate.country_code = WsFaker.get_country_code() to_populate.region = WsFaker.get_region() to_populate.geo_source = WsFaker.get_geo_source() to_populate.postal_code = WsFaker.get_zip_code() to_populate.latitude = WsFaker.get_latitude() to_populate.longitude = WsFaker.get_longitude() return to_populate
def _populate_dummy(cls, to_populate): from lib import WsFaker to_populate.open_tcp_ports = WsFaker.get_ports() to_populate.open_udp_ports = WsFaker.get_ports() to_populate.historic_domain_names = WsFaker.get_domain_names() to_populate.reverse_domain_names = WsFaker.get_domain_names() to_populate.geolocation_geohash = WsFaker.get_geohash() to_populate.geolocation_latitude = WsFaker.get_latitude() to_populate.geolocation_longitude = WsFaker.get_longitude() to_populate.geolocation_region = WsFaker.get_region() to_populate.geolocation_country_code = WsFaker.get_country_code() to_populate.geolocation_postal_code = WsFaker.get_zip_code() to_populate.arin_whois_networks = WsFaker.get_whois_networks() to_populate.unknown_domain_names = WsFaker.get_domain_names() return to_populate