small amend to feba50e3c2 (typo fixed)

pull/2302/head
sebres 2019-06-04 20:40:48 +02:00
parent feba50e3c2
commit 2e51897d7a
1 changed files with 2 additions and 2 deletions

View File

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