- 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-b1dcaea8d605
0.x
Cyril Jaquier 2006-08-20 20:40:47 +00:00
parent 535b9a6a36
commit 0326a94157
2 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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."""