Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-10-10 08:02:03 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-10-10 08:02:03 (GMT)
commitf1f0e9d26ccb5564b5ccd08fb1697338b1f52a07 (patch)
tree72ee57fb4fed2f8ded71cabd96c14c1bf85196e8 /tests
parent279ebda451f69edb862aec7590507ee10d65af84 (diff)
Get names in random order
Diffstat (limited to 'tests')
-rw-r--r--tests/simulator/demo/others.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/simulator/demo/others.py b/tests/simulator/demo/others.py
index 59db9da..6e20425 100644
--- a/tests/simulator/demo/others.py
+++ b/tests/simulator/demo/others.py
@@ -1,10 +1,21 @@
+import random
+
from sugar.simulator import Bot
-for i in range(0, 10):
+for i in range(0, 8):
bot = Bot()
- bot.wait(20)
+ bot.wait(random.randint(10, 20))
bot.join_activity('giraffes')
bot.change_activity('giraffes')
bot.start()
+
+for i in range(0, 6):
+ bot = Bot()
+
+ bot.wait(random.randint(10, 20))
+ bot.join_activity('nekkhamma')
+ bot.change_activity('nekkhamma')
+
+ bot.start()