Updated coding standards test to raise an exception containing the PEP8 failiures.

Closes #2091