Code review comment for lp:~coreygoldberg/autopilot/fix-tests-1281733

Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

A few comments:

1) you don't need to import ExpectedException any more.

2) Please rename your exception to 'InvalidArguments' - there's no need to have both ''Invalid' and 'Error' in the exception name.

3) When raising The InvalidArguments Error, just do:

raise InvalidArguments("%s" % e)

(note the '%s' instead of '%r').

Otherwise, LGTM - make sure you run flake8 over it as well.

review: Needs Fixing

« Back to merge proposal