def METHOD_NAME(self):
    """
    hosts.get_alias
    """
    self.assertEqual(
        self.run_function("hosts.get_alias", ["127.0.0.1"]), ["localhost", "myname"]
    )
    self.assertEqual(self.run_function("hosts.get_alias", ["127.0.0.2"]), [])
    self.__clear_hosts()
    self.assertEqual(self.run_function("hosts.get_alias", ["127.0.0.1"]), [])