This is written already: https://github.com/mozilla/zamboni/blob/master/apps/amo/tests/__init__.py#L500