Conditionally test fail2ban-client status <JAIL> extended when dnspython is installed

pull/924/head
Lee Clemens 2015-01-23 15:40:00 -05:00
parent a8f057eab7
commit a80ff26e15
1 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,11 @@ def gatherTests(regexps=None, no_network=False):
tests.addTest(unittest.makeSuite(failmanagertestcase.AddFailure))
# BanManager
tests.addTest(unittest.makeSuite(banmanagertestcase.AddFailure))
tests.addTest(unittest.makeSuite(banmanagertestcase.StatusExtendedCymruInfo))
try:
import dns
tests.addTest(unittest.makeSuite(banmanagertestcase.StatusExtendedCymruInfo))
except ImportError:
pass
# ClientReaders
tests.addTest(unittest.makeSuite(clientreadertestcase.ConfigReaderTest))
tests.addTest(unittest.makeSuite(clientreadertestcase.JailReaderTest))