fedora-infra/bodhi — pull request #22 by bochecha (2014-01-13 06:24:54+00:00)
Title: Fix the unit tests

The Bodhi 1 tests were broken, apparently for quite a while.

The first commits fixes them all, without changing a single line of the tests, just by improving the `buildsys.DevBuildsys.getBuild()` function.

It seems the tests were making some assumption which most likely worked with Koji, but the `buildsys.DevBuildsys.getBuild()` function was way too simple to support those assumptions.

The second commit just removes 3 lines of completely useless code. Yay!