Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 def _populate_dummy(cls, to_populate):
     from lib import WsFaker
     to_populate.whois_org_name = WsFaker.get_word()
     to_populate.whois_org_handle = WsFaker.get_word()
     to_populate.whois_org_postal_code = WsFaker.get_zip_code()
     to_populate.whois_org_country_code = WsFaker.get_country_code()
     to_populate.whois_org_street_address = WsFaker.get_street_address()
     to_populate.whois_org_city = WsFaker.get_city()
     to_populate.whois_org_state = WsFaker.get_state_code()
     to_populate.whois_org_registration_date = WsFaker.get_time_in_past()
     to_populate.whois_org_update_date = WsFaker.get_time_in_past()
     to_populate.whois_network_handle = WsFaker.get_word()
     to_populate.whois_network_name = WsFaker.get_word()
     to_populate.whois_network_range = WsFaker.get_network_cidr_range()
     to_populate.whois_network_registration_date = WsFaker.get_time_in_past(
     )
     to_populate.whois_network_update_date = WsFaker.get_time_in_past()
     to_populate.whois_network_version = WsFaker.get_random_int()
     to_populate.whois_data_source = WsFaker.get_word()
     return to_populate