From de22c49b4dd3fe46db57a7f9441a203c547e37f7 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Thu, 26 Dec 2013 09:05:45 +0000 Subject: [PATCH] TST: (another) py26 compatible test fix --- fail2ban/tests/databasetestcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/tests/databasetestcase.py b/fail2ban/tests/databasetestcase.py index d2b8706a..acbd982c 100644 --- a/fail2ban/tests/databasetestcase.py +++ b/fail2ban/tests/databasetestcase.py @@ -68,7 +68,7 @@ class DatabaseTest(unittest.TestCase): shutil.copyfile('fail2ban/tests/files/database_v1.db', self.dbFilename) self.db = Fail2BanDb(self.dbFilename) self.assertEqual(self.db.getJailNames(), set(['DummyJail #29162448 with 0 tickets'])) - self.assertEqual(self.db.getLogPaths(), {'/tmp/Fail2BanDb_pUlZJh.log'}) + self.assertEqual(self.db.getLogPaths(), set(['/tmp/Fail2BanDb_pUlZJh.log'])) ticket = FailTicket("127.0.0.1", 1388009242.26, [u"abc\n"]) self.assertEqual(self.db.getBans()[0], ticket)