[Uludag-commits] r16237 - in branches/comar-dbus/tests: . code

uludag-commits at pardus.org.tr uludag-commits at pardus.org.tr
4 Ara 2007 Sal 22:58:30 EET


Author: bahadir.kandemir
Date: Tue Dec  4 22:58:30 2007
New Revision: 16237

Added:
   branches/comar-dbus/tests/sample-gui.py
Modified:
   branches/comar-dbus/tests/code/System_Package_apache.py
   branches/comar-dbus/tests/code/System_Package_mysql.py
   branches/comar-dbus/tests/sample-async-cli.py
   branches/comar-dbus/tests/sample-cli.py
Log:
sample qt4 client, and few changes to {a}sync test codes.

Modified: branches/comar-dbus/tests/code/System_Package_apache.py
=================================================================
--- branches/comar-dbus/tests/code/System_Package_apache.py	(original)
+++ branches/comar-dbus/tests/code/System_Package_apache.py	Tue Dec  4 22:58:30 2007
@@ -4,6 +4,6 @@
 import random
 import time
 
-def postInstall(a, b=2.0):
+def postInstall(a):
     time.sleep(random.randint(1, 3))
-    return "a: %s\nb: %s" % (repr(a), repr(b))
+    return "You said: '%s'" % a

Modified: branches/comar-dbus/tests/code/System_Package_mysql.py
=================================================================
--- branches/comar-dbus/tests/code/System_Package_mysql.py	(original)
+++ branches/comar-dbus/tests/code/System_Package_mysql.py	Tue Dec  4 22:58:30 2007
@@ -1,5 +1,5 @@
 #!/usr/bin/python
 # -*- coding: utf-8 -*-
 
-def postInstall(a, b=2):
-    return "a: %s\nb: %s" % (a, b)
+def postInstall(a):
+    return "You said: '%s'" % a

Modified: branches/comar-dbus/tests/sample-async-cli.py
=================================================================
--- branches/comar-dbus/tests/sample-async-cli.py	(original)
+++ branches/comar-dbus/tests/sample-async-cli.py	Tue Dec  4 22:58:30 2007
@@ -20,7 +20,7 @@
         iface.postInstall(*args, **kwargs)
         time.sleep(0.5) # don't flood
 
-    test(1, 2)
+    test(1)
 
     loop = gobject.MainLoop()
     loop.run()

Modified: branches/comar-dbus/tests/sample-cli.py
=================================================================
--- branches/comar-dbus/tests/sample-cli.py	(original)
+++ branches/comar-dbus/tests/sample-cli.py	Tue Dec  4 22:58:30 2007
@@ -13,8 +13,8 @@
         except Exception, e:
             print e
 
+    test(1)
     test(1, [1, 2, 3])
-    test(1, [1, 2, 3], 1)
 
 
 if __name__ == '__main__':


Uludag-commits mesaj listesiyle ilgili daha fazla bilgi