mirror of https://github.com/fail2ban/fail2ban
TST: restore Ticket testcase coverage to 100% after addition of exception test in Ticket.__eq__
parent
37ab4147d1
commit
ec31e6a702
|
@ -100,6 +100,7 @@ class AddFailure(unittest.TestCase):
|
|||
self.assertEqual(
|
||||
ticket_repr,
|
||||
'FailTicket: ip=193.168.0.128 time=1167605999.0 #attempts=5 matches=[]')
|
||||
self.assertFalse(ticket == False)
|
||||
# and some get/set-ers otherwise not tested
|
||||
ticket.setTime(1000002000.0)
|
||||
self.assertEqual(ticket.getTime(), 1000002000.0)
|
||||
|
|
Loading…
Reference in New Issue