Me too, but the call to patch() cannot go in common because the value of the dict passed as the first argument is not known at that time. I factored some of the repeated code (INSTALLED_APPS, for example) though.