Ejemplo n.º 1
0
 def test_ticket_num_required2(self):
     t = Ticket(summary='my ticket', ticket_num=12)
     try:
         t.ticket_num = None
     except schema.Invalid:
         pass
     else:
         raise AssertionError('Expected schema.Invalid to be thrown')
Ejemplo n.º 2
0
 def test_ticket_num_required2(self):
     t = Ticket(summary='my ticket', ticket_num=12)
     try:
         t.ticket_num = None
     except schema.Invalid:
         pass
     else:
         raise AssertionError('Expected schema.Invalid to be thrown')