mirror of https://github.com/fail2ban/fail2ban
small amend to feba50e3c2
(typo fixed)
parent
feba50e3c2
commit
2e51897d7a
|
@ -2032,8 +2032,8 @@ class DNSUtilsNetworkTests(unittest.TestCase):
|
|||
sname = DNSUtils.getHostname(fqdn=False)
|
||||
lname = DNSUtils.getHostname(fqdn=True)
|
||||
# FQDN is not localhost if short hostname is not localhost too (or vice versa):
|
||||
self.assertTrue(lname != 'localhost',
|
||||
sname != 'localhost')
|
||||
self.assertEqual(lname != 'localhost',
|
||||
sname != 'localhost')
|
||||
# FQDN from short name should be long name:
|
||||
self.assertEqual(getfqdn(sname), lname)
|
||||
# FQDN from FQDN is the same:
|
||||
|
|
Loading…
Reference in New Issue