mirror of https://github.com/fail2ban/fail2ban
Reincarnated removed (by mistake) test for SplitAction
parent
2312b1d950
commit
ec3080cba5
|
@ -109,6 +109,11 @@ class JailReaderTest(unittest.TestCase):
|
||||||
self.assertFalse(jail.isEnabled())
|
self.assertFalse(jail.isEnabled())
|
||||||
self.assertEqual(jail.getName(), 'ssh-iptables')
|
self.assertEqual(jail.getName(), 'ssh-iptables')
|
||||||
|
|
||||||
|
def testSplitAction(self):
|
||||||
|
action = "mail-whois[name=SSH]"
|
||||||
|
expected = ['mail-whois', {'name': 'SSH'}]
|
||||||
|
result = JailReader.splitAction(action)
|
||||||
|
self.assertEquals(expected, result)
|
||||||
|
|
||||||
class JailsReaderTest(unittest.TestCase):
|
class JailsReaderTest(unittest.TestCase):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue