How To Compare Errors In A Unit Test Python