def METHOD_NAME(self):
    """
    hosts.list_hosts
    """
    hosts = self.run_function("hosts.list_hosts")
    self.assertEqual(len(hosts), 10)
    self.assertEqual(hosts["::1"], {"aliases": ["ip6-localhost", "ip6-loopback"]})
    self.assertEqual(hosts["127.0.0.1"], {"aliases": ["localhost", "myname"]})