aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/parts.py
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws/parts.py')
-rw-r--r--gsxws/parts.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/gsxws/parts.py b/gsxws/parts.py
index 8240096..a371ea3 100644
--- a/gsxws/parts.py
+++ b/gsxws/parts.py
@@ -23,3 +23,11 @@ class Part(GsxObject):
return urllib.urlretrieve(url, tmpfile[1])[0]
except Exception, e:
raise GsxError('Failed to fetch part image: %s' % e)
+
+
+if __name__ == '__main__':
+ import doctest
+ from core import connect
+ logging.basicConfig(level=logging.DEBUG)
+ connect(*sys.argv[1:4])
+ doctest.testmod()