Ejemplo n.º 1
0
 def test_valid_domain_name(self):
     from servers.LV import WhoisQuery
     query = get_whois_query("domain.lv")
     self.assertEqual(query, WhoisQuery)
Ejemplo n.º 2
0
 def test_valid_domain_name_with_mixed_case(self):
     from servers.COM import WhoisQuery
     query = get_whois_query("domain.cOm")
     self.assertEqual(query, WhoisQuery)
Ejemplo n.º 3
0
def whois(domain):
    query = get_whois_query(domain)
    query = query()
    query.query(domain)
    return query.raw_response