Pep8 unit test modules for hacking and one liners (4 of 12)

Address all the "hacking" lines that are flagged, and all the modules
that just have one item flagged.

Change-Id: I372a4bdf9c7748f73e38c4fd55e5954f1afade5b
Signed-off-by: Peter Portante <peter.portante@redhat.com>
Merge "Pep8 unit test modules for hacking and one liners (4 of 12)"