Instead of test_url parameter, use the override_settings decorator.