test: fix UsageTest test, so it work without dnf is installed on the sys...

...tem

PEP8 cleanup