-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPrueba.py
37 lines (36 loc) · 887 Bytes
/
Prueba.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from Boleto import *
from Vendedor import *
from Ruta import *
from Parada import *
A = "A"
B = "B"
C = "C"
D = "D"
E = "E"
F = "F"
list = []
list.append(A)
list.append(B)
list.append(C)
list.append(D)
list.append(E)
list.append(F)
ruta = Ruta(3,list)
tickets = []
vendedor = Vendedor("Isay","ABCDE10","","",tickets)
ticket0 = Boleto(vendedor,"01-10-2010","A","D")
ticket1 = Boleto(vendedor,"01-10-2010","A","D")
ticket2 = Boleto(vendedor,"01-10-2010","A","D")
ticket3 = Boleto(vendedor,"01","D","F")
ticket4 = Boleto(vendedor,"01","D","E")
ticket5 = Boleto(vendedor,"01","D","F")
tickets.append(ticket0)
tickets.append(ticket1)
tickets.append(ticket2)
#tickets.append(ticket3)
tickets.append(ticket4)
tickets.append(ticket5)
vendedor.setTickets(tickets)
vendedor.ventaBoletos("01","A","F",ruta)
#print(verificaBoleto("D","F",ruta,tickets))
#print(verificaBoleto("A","C",ruta,tickets))