Add test script
This commit is contained in:
parent
f82199192b
commit
a18faefe93
13
tests/runTest.py
Normal file
13
tests/runTest.py
Normal 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()
|
||||
Loading…
x
Reference in New Issue
Block a user