Add missing test coverage for MultiplePortsNotApplicable compute/api

Change-Id: I40de9b52452312779187c818afaf9ac03f1aefe3
Closes-bug: 1321902
Fix and gate on H305 and H307

Both H305 and H307 are part of the OpenStack style guide.

Ensure that there are 3 groups of imports, stdlib,
third-party and project specific. Within each category
ensure that imports are in alphabetical order.

Change-Id: Id4994551c135c3c1a4982153f0c6cacba6176b95
Merge "Fix and gate on H305 and H307"
Merge "Add missing test coverage for MultiplePortsNotApplicable compute/api"