From a18faefe939ebdaea3f7e19ed665174a09556b5d Mon Sep 17 00:00:00 2001 From: Larry Kim Date: Tue, 21 May 2013 20:52:06 +0900 Subject: [PATCH] Add test script --- tests/runTest.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/runTest.py 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()