mirror of https://github.com/fail2ban/fail2ban
- Removed test which depends on current time
- Fixed self.server.start() git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@275 a942ae1a-1317-0410-a47c-b1dcaea8d6050.x
parent
535b9a6a36
commit
0326a94157
|
@ -53,7 +53,7 @@ tests = unittest.TestSuite()
|
||||||
# Filter
|
# Filter
|
||||||
tests.addTest(unittest.makeSuite(filtertestcase.IgnoreIP))
|
tests.addTest(unittest.makeSuite(filtertestcase.IgnoreIP))
|
||||||
tests.addTest(unittest.makeSuite(filtertestcase.LogFile))
|
tests.addTest(unittest.makeSuite(filtertestcase.LogFile))
|
||||||
tests.addTest(unittest.makeSuite(filtertestcase.GetFailures))
|
#tests.addTest(unittest.makeSuite(filtertestcase.GetFailures))
|
||||||
# Server
|
# Server
|
||||||
#tests.addTest(unittest.makeSuite(servertestcase.StartStop))
|
#tests.addTest(unittest.makeSuite(servertestcase.StartStop))
|
||||||
#tests.addTest(unittest.makeSuite(servertestcase.Transmitter))
|
#tests.addTest(unittest.makeSuite(servertestcase.Transmitter))
|
||||||
|
|
|
@ -33,7 +33,7 @@ class StartStop(unittest.TestCase):
|
||||||
"""Call before every test case."""
|
"""Call before every test case."""
|
||||||
self.server = Server()
|
self.server = Server()
|
||||||
self.server.setLogLevel(0)
|
self.server.setLogLevel(0)
|
||||||
self.server.start()
|
self.server.start(False)
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
"""Call after every test case."""
|
"""Call after every test case."""
|
||||||
|
@ -53,7 +53,7 @@ class Transmitter(unittest.TestCase):
|
||||||
"""Call before every test case."""
|
"""Call before every test case."""
|
||||||
self.server = Server()
|
self.server = Server()
|
||||||
self.server.setLogLevel(0)
|
self.server.setLogLevel(0)
|
||||||
self.server.start()
|
self.server.start(False)
|
||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
"""Call after every test case."""
|
"""Call after every test case."""
|
||||||
|
|
Loading…
Reference in New Issue