bodhi_utils: add safety check to build2update()
ClosedPublic

Authored by kparal on May 6 2015, 12:37 PM.

Details

Summary

There's some complicated logic, so an assert at the end is always handy
to make sure it works correctly. This can't be easily unit tested.

This is to complement D368. The purpose is to have the sanity check in a single place, instead of checking it at every task that uses that method.

Test Plan

test suite passes. I also introduced an error in that method manually and verified that it will raise that assertion error.

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal retitled this revision from to bodhi_utils: add safety check to build2update().May 6 2015, 12:37 PM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added reviewers: tflink, jskladan, mkrizek.
jskladan accepted this revision.May 6 2015, 2:19 PM
This revision is now accepted and ready to land.May 6 2015, 2:19 PM
tflink accepted this revision.May 6 2015, 4:16 PM
This revision was automatically updated to reflect the committed changes.