Add test script

This commit is contained in:
Larry Kim 2013-05-21 20:52:06 +09:00
parent f82199192b
commit a18faefe93

13
tests/runTest.py Normal file
View File

@ -0,0 +1,13 @@
import os
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.sys.path.insert(0, parentdir)
from whois import whois
from whois import parser
print dir(whois)
domain = "example.com"
w = whois(domain, True)
t = w.query(False)
p = parser.Parser(domain, t[1], t[0], True)
print p.parse()