mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
small amend to feba50e3c2 (typo fixed)
This commit is contained in:
parent
feba50e3c2
commit
2e51897d7a
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue