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,7 +2032,7 @@ class DNSUtilsNetworkTests(unittest.TestCase):
sname = DNSUtils.getHostname(fqdn=False) sname = DNSUtils.getHostname(fqdn=False)
lname = DNSUtils.getHostname(fqdn=True) lname = DNSUtils.getHostname(fqdn=True)
# FQDN is not localhost if short hostname is not localhost too (or vice versa): # FQDN is not localhost if short hostname is not localhost too (or vice versa):
self.assertTrue(lname != 'localhost', self.assertEqual(lname != 'localhost',
sname != 'localhost') sname != 'localhost')
# FQDN from short name should be long name: # FQDN from short name should be long name:
self.assertEqual(getfqdn(sname), lname) self.assertEqual(getfqdn(sname), lname)