diff --git a/tests/runTest.py b/tests/runTest.py new file mode 100644 index 0000000..7e784ba --- /dev/null +++ b/tests/runTest.py @@ -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()