Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pilas/test/test_interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'pilas/test/test_interface.py')
-rw-r--r--pilas/test/test_interface.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/pilas/test/test_interface.py b/pilas/test/test_interface.py
new file mode 100644
index 0000000..f76dd81
--- /dev/null
+++ b/pilas/test/test_interface.py
@@ -0,0 +1,30 @@
+import pilas
+
+def test_todos_los_objetos_de_interfaz_se_pueden_crear():
+ pilas.iniciar()
+
+ deslizador = pilas.interfaz.Deslizador()
+ assert deslizador
+ assert deslizador.progreso == 0
+
+ boton = pilas.interfaz.Boton()
+ assert boton
+
+ ingreso = pilas.interfaz.IngresoDeTexto()
+ assert ingreso
+
+ try:
+ pilas.interfaz.ListaSeleccion()
+ except TypeError:
+ assert True # Se espera esta excepcion, porque un argumento es obligatorio
+
+ lista = pilas.interfaz.ListaSeleccion([('uno')])
+ assert lista
+
+ try:
+ pilas.interfaz.Selector()
+ except TypeError:
+ assert True # el argumento texto es obligatorio.
+
+ selector = pilas.interfaz.Selector("hola")
+ assert selector