diff options
author | Filipp Lepalaan <f@230.to> | 2013-05-12 23:31:27 +0300 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2013-05-12 23:31:27 +0300 |
commit | c0eb64d41e921cf4ee3498d89591f5464c76eee7 (patch) | |
tree | 86c2c3e2cd83c4339b06260adb8899135d64d51d /gsxws/parts.py | |
parent | aaacaebb861beaf2ef39b6bc54db2d12262e9b0d (diff) | |
download | py-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.py | 8 |
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() |