def METHOD_NAME(self):
    self.cmd = dnf.cli.commands.repoquery.RepoQueryCommand(
        tests.support.CliStub(tests.support.BaseCliStub()))
    tests.support.command_configure(self.cmd, ['--source'])
    pkg = dnf.cli.commands.repoquery.PackageWrapper(PkgStub())
    self.assertEqual(self.cmd.build_format_fn(self.cmd.opts, pkg),
                     EXPECTED_SOURCERPM_FORMAT)