def METHOD_NAME(self):
    """
    hosts.set_hosts
    """
    self.assertTrue(self.run_function("hosts.set_host", ["192.168.1.123", "newip"]))
    self.assertTrue(self.run_function("hosts.has_pair", ["192.168.1.123", "newip"]))
    self.assertTrue(self.run_function("hosts.set_host", ["127.0.0.1", "localhost"]))
    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",
    )