test code for Rwhois.py
[python-rwhoisd.git] / rwhoisd / Rwhois.py
index 265d520..882db54 100644 (file)
@@ -167,20 +167,3 @@ class rwhoisobject:
 
         return self.attrs_to_wire_str(self.attr_order, prefix)
     
-
-
-## A basic test driver
-if __name__ == '__main__':
-
-    obj = rwhoisobject()
-    obj.add_attr('id', '001')
-    obj.add_attr("class-name", 'contact')
-    obj.add_attr("class-name", "foo")
-    obj.add_attr('name', 'Aiden Quinn')
-    obj.add_attr('email', 'aquin@yahoo.com')
-    obj.add_attr('org-name', 'YoYoDyne Inc.')
-    obj.add_attr('email', 'aq@aol.net')
-    obj.add_attr('First-Name', 'Aiden ')
-
-    print "obj:\n", obj
-    print "wire:\n", obj.to_wire_str()