def METHOD_NAME(self):
    self.setup_step(rpmbuild.RpmBuild(specfile="foo.spec", autoRelease=True))
    self.expect_commands(
        ExpectShell(workdir='wkdir', command='rpmbuild --define "_topdir '
                    '`pwd`" --define "_builddir `pwd`" --define "_rpmdir `pwd`" '
                    '--define "_sourcedir `pwd`" --define "_specdir `pwd`" '
                    '--define "_srcrpmdir `pwd`" --define "_release 0" '
                    '--define "dist .el6" -ba foo.spec')
        .stdout('Your code has been rated at 10/10')
        .exit(0))
    self.expect_outcome(result=SUCCESS, state_string='RPMBUILD')
    return self.run_step()