Fix tests for new changes from PR #15217

This commit is contained in:
Thomas S Hatch 2014-09-02 17:39:50 -06:00
parent 4b32ec8e06
commit b95d575e52

View File

@ -50,7 +50,7 @@ class HostsModuleTest(integration.ModuleCase):
'''
self.__clean_hosts()
hosts = self.run_function('hosts.list_hosts')
self.assertEqual(len(hosts), 6)
self.assertEqual(len(hosts), 10)
self.assertEqual(hosts['::1'], ['ip6-localhost', 'ip6-loopback'])
self.assertEqual(hosts['127.0.0.1'], ['localhost', 'myname'])
@ -121,7 +121,7 @@ class HostsModuleTest(integration.ModuleCase):
self.assertTrue(
self.run_function('hosts.set_host', ['127.0.0.1', 'localhost'])
)
self.assertEqual(len(self.run_function('hosts.list_hosts')), 7)
self.assertEqual(len(self.run_function('hosts.list_hosts')), 11)
self.assertFalse(
self.run_function('hosts.has_pair', ['127.0.0.1', 'myname']),
'should remove second entry'
@ -138,7 +138,7 @@ class HostsModuleTest(integration.ModuleCase):
self.assertTrue(
self.run_function('hosts.has_pair', ['192.168.1.123', 'newip'])
)
self.assertEqual(len(self.run_function('hosts.list_hosts')), 7)
self.assertEqual(len(self.run_function('hosts.list_hosts')), 11)
self.assertTrue(
self.run_function('hosts.add_host', ['127.0.0.1', 'othernameip'])
)