Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tests.py')
-rw-r--r--Tests.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests.py b/Tests.py
new file mode 100644
index 0000000..7598cae
--- /dev/null
+++ b/Tests.py
@@ -0,0 +1,16 @@
+from Globals import *
+P = PREGUNTAS
+import random
+
+Pregunta = random.choice(P)
+print "Elemento: " + str(Pregunta["elemento"])
+print ""
+print "Pregunta: " + str(Pregunta["pregunta"])
+print ""
+print "Respuestas: "
+actual = 0
+for x in Pregunta["opciones"]:
+ print str(actual) + ") " + x
+ print ""
+ actual += 1
+print "Respuesta original: " + str(Pregunta["respuesta"]) + ") " + str(Pregunta["opciones"][Pregunta["respuesta"]])