def METHOD_NAME(self):
    """
    dnf.package.Package has a 'base' attribute,
    but it isn't allowed in queryformat strings and
    should also leave a literal %{base}.
    """
    pkg = dnf.cli.commands.repoquery.PackageWrapper(PkgStub())
    fmt = dnf.cli.commands.repoquery.rpm2py_format("%{base}").format(pkg)
    self.assertEqual(fmt, "%{base}")