[Erp5-report] r25740 - /erp5/trunk/products/TIDStorage/tests/testTIDServer.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 27 11:25:56 CET 2009
Author: luke
Date: Fri Feb 27 11:25:48 2009
New Revision: 25740
URL: http://svn.erp5.org?rev=25740&view=rev
Log:
- check for system arguments only when executed
Modified:
erp5/trunk/products/TIDStorage/tests/testTIDServer.py
Modified: erp5/trunk/products/TIDStorage/tests/testTIDServer.py
URL: http://svn.erp5.org/erp5/trunk/products/TIDStorage/tests/testTIDServer.py?rev=25740&r1=25739&r2=25740&view=diff
==============================================================================
--- erp5/trunk/products/TIDStorage/tests/testTIDServer.py [utf8] (original)
+++ erp5/trunk/products/TIDStorage/tests/testTIDServer.py [utf8] Fri Feb 27 11:25:48 2009
@@ -5,11 +5,6 @@
import socket
import time
import sys
-
-assert len(sys.argv) == 3, 'Requires exactly 2 arguments: <address> <port>'
-
-address = sys.argv[1]
-port = int(sys.argv[2])
class TIDClient:
def __init__(self, address):
@@ -283,6 +278,12 @@
sys.stdout.write(message)
if __name__ == '__main__':
+
+ assert len(sys.argv) == 3, 'Requires exactly 2 arguments: <address> <port>'
+
+ address = sys.argv[1]
+ port = int(sys.argv[2])
+
test = TestTIDServerV2(address, port)
test.run()
More information about the Erp5-report
mailing list