aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/parts.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-05-12 23:31:27 +0300
committerFilipp Lepalaan <f@230.to>2013-05-12 23:31:27 +0300
commitc0eb64d41e921cf4ee3498d89591f5464c76eee7 (patch)
tree86c2c3e2cd83c4339b06260adb8899135d64d51d /gsxws/parts.py
parentaaacaebb861beaf2ef39b6bc54db2d12262e9b0d (diff)
downloadpy-gsxws-c0eb64d41e921cf4ee3498d89591f5464c76eee7.tar.gz
py-gsxws-c0eb64d41e921cf4ee3498d89591f5464c76eee7.tar.bz2
py-gsxws-c0eb64d41e921cf4ee3498d89591f5464c76eee7.zip
Some tweaks
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()