I had to [update the test](https://github.com/mstriemer/zamboni/blob/ac5043bdfc6a37ce511b394743ba5fa03699fe53/mkt/webapps/tests/test_utils_.py#L504) to set `request.REGION = regions.BR` instead of passing `data={'region': 'br'}` since the middleware does not run on the test.