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.
« Back to merge proposal
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 InvalidArgument s("%s" % e)
(note the '%s' instead of '%r').
Otherwise, LGTM - make sure you run flake8 over it as well.