My ugly hack broke (as it was bound to) due to auth changes elsewhere. This fixes the convenience methods; generators that yield responses as appropriate when an arbitrary call result is paginated.
simplify method_for(), fixing collision with auth/_get_region_name
I'm not in love with this being module-level (think very long-lived processes caching this indefinitely), but I don't know if there's a better place to be putting it.
Actually, that's why I put it there. If you come up with a better idea, I'll listen...
I'd feel a ton better about this change if there were some tests backing it. Since it looks like most of this can be faked, just adding a couple simple unit (non-integration) tests for the wrapper & method_for functions would be perfect. I like it much better than the previous solution.
If a couple simple unit tests for these methods make you feel a ton better, I encourage you to submit a pull request. :-)
I feel a ton better about replacing code that doesn't work at all and isn't covered by tests with code that works fine and isn't covered by tests.
How are the tests coming?
Added tests for the changes to MWS in #1374.
Merged. Thanks for the patch!