Had to replace this because `nosetests` doesn't call `setup_test_environment` which is required in order to set `ALLOWED_HOSTS` correctly.