def METHOD_NAME(self):
    import pwd
    home = pwd.getpwuid(os.getuid()).pw_dir
    # $HOME can end with a trailing /, so strip it (see cpython #17809)
    home = home.rstrip("/") or '/'
    self.assertEqual(path_expand_user.posix_expanduser("~", {}), home)